diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2016-10-13 17:03:45 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2016-10-13 17:03:45 +0800 |
commit | 96ee3c88369795a5b527e6892c180b34d77ab817 (patch) | |
tree | d2e96238a3bbeb83085274caac7c7c64396fb899 /multimedia | |
parent | 58b794b2304948a7e5e1c265429110f63acaef75 (diff) | |
download | freebsd-ports-gnome-96ee3c88369795a5b527e6892c180b34d77ab817.tar.gz freebsd-ports-gnome-96ee3c88369795a5b527e6892c180b34d77ab817.tar.zst freebsd-ports-gnome-96ee3c88369795a5b527e6892c180b34d77ab817.zip |
- Fix LICENSE
- Switch to USES=localbase
- Cosmetic fixes
- Switch to options helpers
- Fix options
- Simplify docs installation
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/dvdauthor/Makefile | 51 |
1 files changed, 16 insertions, 35 deletions
diff --git a/multimedia/dvdauthor/Makefile b/multimedia/dvdauthor/Makefile index ca9608404595..522701e16e81 100644 --- a/multimedia/dvdauthor/Makefile +++ b/multimedia/dvdauthor/Makefile @@ -10,7 +10,8 @@ MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Makes a DVD file structure from one or more MPEG2 streams -LICENSE= GPLv2 +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libdvdread.so:multimedia/libdvdread \ libfribidi.so:converters/fribidi \ @@ -21,55 +22,35 @@ LIB_DEPENDS= libdvdread.so:multimedia/libdvdread \ WRKSRC= ${WRKDIR}/${PORTNAME} -USES= gmake iconv pkgconfig +USES= gmake iconv localbase pkgconfig USE_GNOME= libxml2 GNU_CONFIGURE= yes -CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib -PORTDOCS= * - -DOCSRCDIR1= ${WRKSRC} -DOC_FILES1= AUTHORS ChangeLog README - -DOCSRCDIR2= ${WRKDIR} -DOC_FILES2= README.FreeBSD +SUB_FILES= README.FreeBSD -OPTIONS_DEFINE= DOCS IMAGEMAGICK VIDEO-FORMAT +PORTDOCS= * -OPTIONS_SINGLE= VIDEO-FORMAT -OPTIONS_SINGLE_VIDEO-FORMAT= NTSC PAL +OPTIONS_DEFINE= DOCS IMAGEMAGICK +OPTIONS_RADIO= VIDEO-FORMAT +OPTIONS_RADIO_VIDEO-FORMAT= NTSC PAL VIDEO-FORMAT_DESC= Use default video format NTSC_DESC= Default video format NTSC PAL_DESC= Default video format PAL -SUB_FILES= README.FreeBSD - IMAGEMAGICK_LIB_DEPENDS= libMagick++-6.so:graphics/ImageMagick -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MNTSC} -.if ${PORT_OPTIONS:MVIDEO-FORMAT} -CONFIGURE_ENV+= --enable-default-video-format=NTSC -.endif -.endif - -.if ${PORT_OPTIONS:MPAL} -.if ${PORT_OPTIONS:MVIDEO-FORMAT} -CONFIGURE_ENV+= --enable-default-video-format=PAL -.endif -.endif +NTSC_CONFIGURE_ON= --enable-default-video-format=NTSC +PAL_CONFIGURE_ON= --enable-default-video-format=PAL -pre-configure: -.if ! ${PORT_OPTIONS:MIMAGEMAGICK} +pre-configure-IMAGEMAGICK-off: @${REINPLACE_CMD} 's|usemagick=1|usemagick=0|g' \ ${WRKSRC}/configure -.endif -post-install: - ${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR} +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} \ + ${WRKSRC}/AUTHORS ${WRKSRC}/ChangeLog ${WRKSRC}/README \ + ${WRKDIR}/README.FreeBSD ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> |