mirror of
https://git.freebsd.org/ports.git
synced 2025-06-09 23:00:30 -04:00
- Update to 3.3.16
- Grab maintainership (maintainer timeout > 1 month) - Implement OPTIONS PR: ports/83910 Submitted by: Andrej Zverev
This commit is contained in:
parent
fa5c489c1c
commit
d51a0b9c5b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=148553
4 changed files with 100 additions and 20 deletions
|
@ -6,28 +6,68 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
PORTNAME= mp
|
PORTNAME= mp
|
||||||
PORTVERSION= 3.2.9
|
PORTVERSION= 3.3.16
|
||||||
PORTREVISION= 1
|
|
||||||
CATEGORIES= editors
|
CATEGORIES= editors
|
||||||
MASTER_SITES= http://triptico.dhis.org/download/
|
MASTER_SITES= http://www.triptico.com/download/
|
||||||
|
|
||||||
MAINTAINER= markp@FreeBSD.org
|
MAINTAINER= az@FreeBSD.org
|
||||||
COMMENT= A programming text editor
|
COMMENT= A programming text editor
|
||||||
|
|
||||||
USE_GMAKE= yes
|
HAS_CONFIGURE= yes
|
||||||
|
CONFIGURE_SCRIPT= config.sh
|
||||||
|
CONFIGURE_ARGS= --prefix=${PREFIX} --without-win32
|
||||||
USE_REINPLACE= yes
|
USE_REINPLACE= yes
|
||||||
MAKE_ARGS+= PREFIX="${PREFIX}"
|
|
||||||
MAKEFILE= makefile
|
|
||||||
|
|
||||||
post-patch:
|
OPTIONS= CURSES "Build with ncurses support" on \
|
||||||
${REINPLACE_CMD} "s/gcc -g -Wall/${CC} ${CFLAGS} -Wall/g; \
|
NLS "Native language support" on \
|
||||||
s/mp gmp/mp/g" ${WRKSRC}/makefile
|
GTK1 "Build with GTK1 support" off \
|
||||||
|
GTK2 "Build with GTK2 support" off \
|
||||||
|
PCRE "Build with PCRE support" on
|
||||||
|
|
||||||
do-install:
|
MAN1= mp.1
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/mp ${PREFIX}/bin
|
|
||||||
.if !defined(NOPORTDOCS)
|
.include <bsd.port.pre.mk>
|
||||||
${MKDIR} ${DOCSDIR}
|
|
||||||
${INSTALL_DATA} ${WRKSRC}/README.html ${DOCSDIR}
|
.if defined(WITH_CURSES)
|
||||||
|
.if ${OSVERSION} < 400010
|
||||||
|
LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
|
||||||
|
.endif
|
||||||
|
.else
|
||||||
|
CONFIGURE_ARGS+= --without-curses
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.if defined(WITH_GTK1) || defined(WITH_GTK2)
|
||||||
|
.include "${PORTSDIR}/Mk/bsd.gnome.mk"
|
||||||
|
.if defined(WITH_GTK1) && !defined(WITH_GTK2)
|
||||||
|
USE_GNOME+= gtk12
|
||||||
|
.else
|
||||||
|
CONFIGURE_ARGS+= --without-gtk1
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.if defined(WITH_GTK2)
|
||||||
|
USE_GNOME+= gtk20
|
||||||
|
.else
|
||||||
|
CONFIGURE_ARGS+= --without-gtk2
|
||||||
|
.endif
|
||||||
|
.else
|
||||||
|
CONFIGURE_ARGS+= --without-gtk
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.if !defined(WITHOUT_NLS)
|
||||||
|
USE_GETTEXT= yes
|
||||||
|
PLIST_SUB+= NLS=""
|
||||||
|
.else
|
||||||
|
CONFIGURE_ARGS+= --without-gettext
|
||||||
|
PLIST_SUB+= NLS="@comment "
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.if defined(WITH_PCRE)
|
||||||
|
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
|
||||||
|
.else
|
||||||
|
CONFIGURE_ARGS+= --without-pcre
|
||||||
|
.endif
|
||||||
|
|
||||||
|
pre-configure:
|
||||||
|
@${REINPLACE_CMD} -e 's|share/man|man|g' ${WRKSRC}/makefile.in
|
||||||
|
|
||||||
|
.include <bsd.port.post.mk>
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
MD5 (mp-3.2.9.tar.gz) = 49a0a487d10f2fd37c310e1835a7c85f
|
MD5 (mp-3.3.16.tar.gz) = d806d578fb37e3e69b5c69af7965d49a
|
||||||
SIZE (mp-3.2.9.tar.gz) = 178045
|
SHA256 (mp-3.3.16.tar.gz) = 374f71d3c21426ee8dc3b5e6b236f7545d54d8f838f2080eb700876ebb3f7b37
|
||||||
|
SIZE (mp-3.3.16.tar.gz) = 276885
|
||||||
|
|
21
editors/mp/files/patch-config.sh
Normal file
21
editors/mp/files/patch-config.sh
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
--- config.sh.orig Wed Feb 23 21:23:18 2005
|
||||||
|
+++ config.sh Thu Jul 21 18:18:59 2005
|
||||||
|
@@ -320,14 +320,16 @@
|
||||||
|
echo "#define CONFOPT_GETTEXT 1" >> config.h
|
||||||
|
else
|
||||||
|
# try now with -lintl
|
||||||
|
- TMP_LDFLAGS="-lintl"
|
||||||
|
+ TMP_LDFLAGS="-L/usr/local/lib -lintl"
|
||||||
|
+ TMP_CFLAGS="-I/usr/local/include"
|
||||||
|
|
||||||
|
- $CC .tmp.c $TMP_LDFLAGS -o .tmp.o 2>> .config.log
|
||||||
|
+ $CC $TMP_CFLAGS .tmp.c $TMP_LDFLAGS -o .tmp.o 2>> .config.log
|
||||||
|
|
||||||
|
if [ $? = 0 ] ; then
|
||||||
|
echo "OK (libintl needed)"
|
||||||
|
echo "#define CONFOPT_GETTEXT 1" >> config.h
|
||||||
|
echo "$TMP_LDFLAGS" >> config.ldflags
|
||||||
|
+ echo "$TMP_CFLAGS" >> config.cflags
|
||||||
|
else
|
||||||
|
echo "No"
|
||||||
|
WITHOUT_GETTEXT=1
|
|
@ -1,3 +1,21 @@
|
||||||
bin/mp
|
bin/mp
|
||||||
%%PORTDOCS%%share/doc/mp/README.html
|
%%DOCSDIR%%/AUTHORS
|
||||||
%%PORTDOCS%%@dirrm share/doc/mp
|
%%DOCSDIR%%/COPYING
|
||||||
|
%%DOCSDIR%%/Changelog
|
||||||
|
%%DOCSDIR%%/README
|
||||||
|
%%DOCSDIR%%/README.IRIX
|
||||||
|
%%DOCSDIR%%/README.mingw32
|
||||||
|
%%DOCSDIR%%/README.solaris
|
||||||
|
%%DOCSDIR%%/README.zaurus
|
||||||
|
%%DOCSDIR%%/RELEASE_NOTES
|
||||||
|
%%DOCSDIR%%/mprc-win32.sample
|
||||||
|
%%DOCSDIR%%/mprc.sample
|
||||||
|
%%NLS%%share/locale/de/LC_MESSAGES/minimum-profit.mo
|
||||||
|
%%NLS%%share/locale/es/LC_MESSAGES/minimum-profit.mo
|
||||||
|
%%NLS%%share/locale/it/LC_MESSAGES/minimum-profit.mo
|
||||||
|
%%NLS%%share/locale/nl/LC_MESSAGES/minimum-profit.mo
|
||||||
|
%%NLS%%@unexec rmdir %D/share/locale/nl/LC_MESSAGES 2>/dev/null || true
|
||||||
|
%%NLS%%@unexec rmdir %D/share/locale/it/LC_MESSAGES 2>/dev/null || true
|
||||||
|
%%NLS%%@unexec rmdir %D/share/locale/es/LC_MESSAGES 2>/dev/null || true
|
||||||
|
%%NLS%%@unexec rmdir %D/share/locale/de/LC_MESSAGES 2>/dev/null || true
|
||||||
|
@dirrm %%DOCSDIR%%
|
||||||
|
|
Loading…
Add table
Reference in a new issue