diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2014-05-18 04:55:41 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2014-05-18 04:55:41 +0000 |
commit | 6b5a406916d41562dd54a690b7b0c6bee2eafc82 (patch) | |
tree | c4eed5605ce8010ed0793f62dca344e81197bf97 /multimedia/kissdx | |
parent | 5ab394c3fea2a0a36e13d4fc39a76118f980171e (diff) | |
download | ports-6b5a406916d41562dd54a690b7b0c6bee2eafc82.tar.gz ports-6b5a406916d41562dd54a690b7b0c6bee2eafc82.zip |
Notes
Diffstat (limited to 'multimedia/kissdx')
-rw-r--r-- | multimedia/kissdx/Makefile | 56 |
1 files changed, 26 insertions, 30 deletions
diff --git a/multimedia/kissdx/Makefile b/multimedia/kissdx/Makefile index d611367e6bbb..0fd8aa7d6303 100644 --- a/multimedia/kissdx/Makefile +++ b/multimedia/kissdx/Makefile @@ -16,48 +16,44 @@ LIB_DEPENDS= libgd.so:${PORTSDIR}/graphics/gd \ libjpeg.so:${PORTSDIR}/graphics/jpeg \ libdvdread.so:${PORTSDIR}/multimedia/libdvdread -USES= iconv -USE_DOS2UNIX= yes -USE_GCC= any # XXX: uses nested functions +USES= compiler:nestedfct dos2unix iconv MAKE_ENV= FreeBSD=defined -MAN1= kissdx.1 USE_RC_SUBR= kissdx SUB_FILES= pkg-message -PLIST_FILES= etc/kissdx.conf sbin/kissdx sbin/kissd-pretrigger \ - sbin/kissd-posttrigger PORTDOCS= README - -NO_STAGE= yes +PLIST_FILES= etc/kissdx.conf man/man1/kissdx.1.gz \ + sbin/kissd-posttrigger sbin/kissd-pretrigger sbin/kissdx OPTIONS_DEFINE= DOCS -.include <bsd.port.options.mk> - post-patch: - @${REINPLACE_CMD} -e 's|Linux|Unix| ; s|/etc/|${PREFIX}&|' \ - ${WRKSRC}/kissdx.1 - @${REINPLACE_CMD} -e 's|/etc/|${PREFIX}&|' ${WRKSRC}/config.c - @${RM} ${WRKSRC}/kissdx.o + @${REINPLACE_CMD} -e \ + 's|Linux|Unix| ; \ + s|/etc/|${PREFIX}&|' ${WRKSRC}/kissdx.1 + @${REINPLACE_CMD} -e \ + 's|/etc/|${PREFIX}&|' ${WRKSRC}/config.c # Fix parallel (-jX) builds: sanitize dependencies - @${REINPLACE_CMD} -e 's|^\.o :|${PORTNAME}: $$(OBJS)| ; \ - /^all:/s| $$(OBJS)||' ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e \ + 's|-liconv|${ICONV_LIB}| ; \ + s|^\.o :|${PORTNAME}: $$(OBJS)| ; \ + /^all:/s| $$(OBJS)||' ${WRKSRC}/Makefile + +pre-build: + @${RM} -f ${WRKSRC}/kissdx.o do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/kissdx ${PREFIX}/sbin - ${INSTALL_SCRIPT} ${WRKSRC}/kissd-pretrigger ${PREFIX}/sbin - ${INSTALL_SCRIPT} ${WRKSRC}/kissd-posttrigger ${PREFIX}/sbin - ${INSTALL_DATA} ${WRKSRC}/kissdx.conf ${PREFIX}/etc - ${INSTALL_MAN} ${WRKSRC}/kissdx.1 ${MANPREFIX}/man/man1 -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} -.endif - -post-install: - @${ECHO_MSG} - @${CAT} ${PKGMESSAGE} - @${ECHO_MSG} + (cd ${WRKSRC} && ${INSTALL_PROGRAM} kissdx \ + ${STAGEDIR}${PREFIX}/sbin) + (cd ${WRKSRC} && ${INSTALL_SCRIPT} kissd-pretrigger kissd-posttrigger \ + ${STAGEDIR}${PREFIX}/sbin) + (cd ${WRKSRC} && ${INSTALL_MAN} kissdx.1 \ + ${STAGEDIR}${MANPREFIX}/man/man1) + (cd ${WRKSRC} && ${INSTALL_DATA} kissdx.conf \ + ${STAGEDIR}${PREFIX}/etc) + @${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC} && ${INSTALL_DATA} README \ + ${STAGEDIR}${DOCSDIR}) .include <bsd.port.mk> |