[Midnightbsd-cvs] mports [19010] trunk/devel/motor/Makefile: update build of motor
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri May 15 20:50:16 EDT 2015
Revision: 19010
http://svnweb.midnightbsd.org/mports/?rev=19010
Author: laffer1
Date: 2015-05-15 20:50:15 -0400 (Fri, 15 May 2015)
Log Message:
-----------
update build of motor
Modified Paths:
--------------
trunk/devel/motor/Makefile
Modified: trunk/devel/motor/Makefile
===================================================================
--- trunk/devel/motor/Makefile 2015-05-16 00:47:29 UTC (rev 19009)
+++ trunk/devel/motor/Makefile 2015-05-16 00:50:15 UTC (rev 19010)
@@ -2,7 +2,7 @@
PORTNAME= motor
PORTVERSION= 3.4.0
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= devel
MASTER_SITES= http://thekonst.net/download/
@@ -11,11 +11,16 @@
LICENSE= gpl2
+OPTIONS_DEFINE= DOCS NLS
+
USES= tar:bzip2 gmake iconv
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE}
-.if !defined(WITHOUT_NLS)
-USE_GETTEXT= yes
+CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG}
+
+.include <bsd.mport.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+USES+= gettext
CONFIGURE_ARGS+=--with-libintl-prefix=${LOCALBASE}
PLIST_SUB= NLS=""
.else
@@ -24,11 +29,10 @@
.endif
post-patch:
- @${REINPLACE_CMD} -e 's|zxvf|&o|' ${WRKSRC}/share/Makefile.in
@${REINPLACE_CMD} -e 's|strndup|my_strndup|' ${WRKSRC}/parser/src/parser.c \
${WRKSRC}/parser/src/strfn.c ${WRKSRC}/parser/include/strfn.h
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
post-install:
@${MKDIR} ${DOCSDIR}
@(cd ${WRKSRC} ; ${INSTALL_DATA} FAQ README ${DOCSDIR})
More information about the Midnightbsd-cvs
mailing list