diff options
author | Matthias Andree <mandree@FreeBSD.org> | 2013-10-23 22:17:50 +0000 |
---|---|---|
committer | Matthias Andree <mandree@FreeBSD.org> | 2013-10-23 22:17:50 +0000 |
commit | ebe8dcb8a3e9f02b88ec51c2787f495197cb3aa6 (patch) | |
tree | 54b4f36b034128ea3cf9d8d5f7b4b43f48175f4b /news/newsstar/Makefile | |
parent | 69d833029a91acbdaa6e434aa156623ac5ecb016 (diff) | |
download | ports-ebe8dcb8a3e9f02b88ec51c2787f495197cb3aa6.tar.gz ports-ebe8dcb8a3e9f02b88ec51c2787f495197cb3aa6.zip |
Notes
Diffstat (limited to 'news/newsstar/Makefile')
-rw-r--r-- | news/newsstar/Makefile | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/news/newsstar/Makefile b/news/newsstar/Makefile index 822958028154..076cc750227b 100644 --- a/news/newsstar/Makefile +++ b/news/newsstar/Makefile @@ -11,7 +11,7 @@ COMMENT= Transfer news between a local NNTP server (INN, sn, s-news) LICENSE= GPLv3 -LIB_DEPENDS= gdbm:${PORTSDIR}/databases/gdbm +LIB_DEPENDS= libgdbm.so:${PORTSDIR}/databases/gdbm BUILD_DEPENDS= xmlto:${PORTSDIR}/textproc/xmlto \ ${LOCALBASE}/share/xml/docbook/4.5/docbookx.dtd:${PORTSDIR}/textproc/docbook-xml @@ -22,6 +22,7 @@ OPTIONS_DEFINE= SSL OPTIONS_DEFAULT= SSL CONFIGURE_ARGS+=--prefix=${PREFIX} \ + --disable-chown \ --with-conf-dir=${PREFIX}/etc/newsstar \ --with-rc-dir=/var/spool/newsstar/lib \ --with-incoming-dir=/var/spool/newsstar/incoming @@ -29,7 +30,6 @@ CONFIGURE_ARGS+=--prefix=${PREFIX} \ CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib ${ICONV_LIB}" CPPFLAGS+= -I${LOCALBASE}/include -NO_STAGE= yes .include <bsd.port.options.mk> .if ! ${PORT_OPTIONS:MDOCS} @@ -69,29 +69,26 @@ DOCS= AUTHORS INSTALL NEWS README TODO docs/QuickStart docs/manual.txt \ EX_CONFIGS= cf.server.sample curses.cf.sample filter.pl.sample main.cf.sample \ master.ignore.sample master.score.sample newsrc.sample -pre-install: - ${MKDIR} ${PREFIX}/lib/${PORTNAME} +post-patch: + @${REINPLACE_CMD} -e 's|/usr/share/sgml/docbook/dtd/xml|${LOCALBASE}/share/xml/docbook|' ${WRKSRC}/docs/manual.xml + @${REINPLACE_CMD} -e 's|/usr/share/sgml/docbook/dtd/xml|${LOCALBASE}/share/xml/docbook|' ${WRKSRC}/docs/news.xml + @${REINPLACE_CMD} -e 's|install-data-local: install-docs|install-data-local:|' ${WRKSRC}/Makefile.in post-install: .if ${PORT_OPTIONS:MEXAMPLES} - ${MKDIR} ${EXAMPLESDIR} + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} .for i in ${EX_CONFIGS} - ${INSTALL_DATA} ${WRKSRC}/sample_config/${i} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/sample_config/${i} ${STAGEDIR}${EXAMPLESDIR} .endfor .endif .if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} + ${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${DOCS} - ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} .endfor .else - ${MAKE} -C ${WRKSRC}/src install - ${MAKE} -C ${WRKSRC}/docs install-man + ${MAKE} -C ${WRKSRC}/src install DESTDIR=${STAGEDIR} + ${MAKE} -C ${WRKSRC}/docs install-man DESTDIR=${STAGEDIR} .endif -post-patch: - @${REINPLACE_CMD} -e 's|/usr/share/sgml/docbook/dtd/xml|${LOCALBASE}/share/xml/docbook|' ${WRKSRC}/docs/manual.xml - @${REINPLACE_CMD} -e 's|/usr/share/sgml/docbook/dtd/xml|${LOCALBASE}/share/xml/docbook|' ${WRKSRC}/docs/news.xml - @${REINPLACE_CMD} -e 's|install-data-local: install-docs|install-data-local:|' ${WRKSRC}/Makefile.in - .include <bsd.port.post.mk> |