diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2014-06-10 23:19:36 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2014-06-10 23:19:36 +0000 |
commit | bf1f0515b9859ceaed8ff75882e0a5bad808cebc (patch) | |
tree | e50f31af57eacbc3208a31b53dcd7e89fde135b1 /misc/lingoteach | |
parent | 65e65b2b7e728318835e1be883260a8b1499a033 (diff) | |
download | freebsd-ports-bf1f0515b9859ceaed8ff75882e0a5bad808cebc.zip |
- Stagify
- Add missing USES=libtool
- Properly optionize
- Fix build
- Use new LIB_DEPENDS syntax
Diffstat (limited to 'misc/lingoteach')
-rw-r--r-- | misc/lingoteach/Makefile | 79 | ||||
-rw-r--r-- | misc/lingoteach/pkg-plist | 43 |
2 files changed, 38 insertions, 84 deletions
diff --git a/misc/lingoteach/Makefile b/misc/lingoteach/Makefile index 8f1e77e42ae0..ac1f9d169097 100644 --- a/misc/lingoteach/Makefile +++ b/misc/lingoteach/Makefile @@ -2,80 +2,61 @@ PORTNAME= lingoteach PORTVERSION= 0.3.9 -PORTREVISION= 13 +PORTREVISION= 14 CATEGORIES= misc -MASTER_SITES= SF/${PORTNAME}/OldFiles -DISTFILES= ${PORTNAME}-ui-${PORTVERSION}.tar.gz -.if defined(WITH_SOUND) -DISTFILES+= ${PORTNAME}-sound-${SOUNDV}.tar.gz -.endif +MASTER_SITES= SF/${PORTNAME}/OldFiles:src +DISTFILES= ${PORTNAME}-ui-${PORTVERSION}.tar.gz:src MAINTAINER= ports@FreeBSD.org -COMMENT= A language teaching program with sound +COMMENT= Language teaching program with sound -LIB_DEPENDS= lingoteach.3:${PORTSDIR}/textproc/liblingoteach +LIB_DEPENDS= liblingoteach.so:${PORTSDIR}/textproc/liblingoteach WRKSRC= ${WRKDIR}/${PORTNAME}-ui-${PORTVERSION} USE_GNOME= gtk20 GNU_CONFIGURE= yes -USES= gmake pkgconfig +USES= gmake pkgconfig libtool -CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib" +CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib `pkg-config --libs gmodule-2.0`" CPPFLAGS+= -I${LOCALBASE}/include # sound version -SOUNDV= 0.3.9 +SOUNDV= 0.3.9 -.if defined(WITH_DEBUG) -CONFIGURE_ARGS+= --enable-debug -.endif +PORTDATA= * +PORTDOCS= * -.if defined(WITH_SOUND) -PLIST= ${WRKDIR}/plist -.endif +OPTIONS_DEFINE= NLS SOUND DEBUG DOCS +OPTIONS_SUB= yes -NO_STAGE= yes -.include <bsd.port.pre.mk> +SOUND_DESC= Download additional sounds +NLS_USES= gettext +NLS_CONFIGURE_ENABLE= nls +DEBUG_CONFIGURE_ENABLE= debug -pre-everything:: - @${ECHO_CMD} "" - @${ECHO_CMD} " Available options for lingoteach:" - @${ECHO_CMD} "" - @${ECHO_CMD} " WITH_SOUND download additional sounds" - @${ECHO_CMD} " for lingoteach" - @${ECHO_CMD} " WITH_DEBUG enable debugging" - @${ECHO_CMD} "" +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MSOUND} +MASTER_SITES+= SF/${PORTNAME}/${PORTNAME}-sound/${SOUNDV}:sound +DISTFILES+= ${PORTNAME}-sound-${SOUNDV}.tar.gz:sound +.endif post-patch:: -.if defined(NOPORTDOCS) - @${REINPLACE_CMD} -e 's|^SUBDIRS = intl src po data doc|SUBDIRS = src po data|g' \ +.if ${PORT_OPTIONS:MDOCS} + @${REINPLACE_CMD} -e 's|^SUBDIRS = intl src po data doc|SUBDIRS = src po data doc|g' \ ${WRKSRC}/Makefile.in .else - @${REINPLACE_CMD} -e 's|^SUBDIRS = intl src po data doc|SUBDIRS = src po data doc|g' \ + @${REINPLACE_CMD} -e 's|^SUBDIRS = intl src po data doc|SUBDIRS = src po data|g' \ ${WRKSRC}/Makefile.in .endif -.if defined(WITH_SOUND) -pre-install:: - @${CAT} pkg-plist | ${SED} '/@dirrm/d' > ${PLIST}; \ - cd ${WRKDIR}/${PORTNAME}-sound-${SOUNDV}/data; \ - ${FIND} . -type f \! -name "Make*" | ${CUT} -c2- | \ - ${SED} 's|^|${DATADIR:S,${PREFIX}/,,}/data|' \ - | ${SORT} >> ${PLIST}; \ - ${CAT} ${.CURDIR}/pkg-plist | ${SED} '/%%PORTDOCS%%@dirrm/!d' >> ${PLIST}; \ - cd ${WRKDIR}/${PORTNAME}-sound-${SOUNDV}/data; \ - ${FIND} . -type d | ${CUT} -c2- | ${SED} \ - 's|^|@dirrm ${DATADIR:S,${PREFIX}/,,}/data|' | ${SORT} -r >> ${PLIST}; \ - ${ECHO_CMD} "@dirrm ${DATADIR:S,${PREFIX}/,,}" >> ${PLIST}; -.endif - -.if defined(WITH_SOUND) +.if ${PORT_OPTIONS:MSOUND} post-install:: cd ${WRKDIR}/${PORTNAME}-sound-${SOUNDV}/data; \ - ${RM} -f Make*; \ - ${CP} -R ${WRKDIR}/${PORTNAME}-sound-${SOUNDV}/data \ - ${DATADIR}; + ${RM} -f Make*; \ + ${CP} -R ${WRKDIR}/${PORTNAME}-sound-${SOUNDV}/data \ + ${STAGEDIR}${DATADIR}; .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/misc/lingoteach/pkg-plist b/misc/lingoteach/pkg-plist index 550cf461905f..18913531d51f 100644 --- a/misc/lingoteach/pkg-plist +++ b/misc/lingoteach/pkg-plist @@ -1,36 +1,9 @@ bin/lingoteach-gtk -%%PORTDOCS%%share/doc/lingoteach/img/first-start.png -%%PORTDOCS%%share/doc/lingoteach/img/pref-general.png -%%PORTDOCS%%share/doc/lingoteach/img/pref-lesson.png -%%PORTDOCS%%share/doc/lingoteach/img/pref-module.png -%%PORTDOCS%%share/doc/lingoteach/img/pref-system.png -%%PORTDOCS%%share/doc/lingoteach/img/use-filter.png -%%PORTDOCS%%share/doc/lingoteach/img/use-multichoice.png -%%PORTDOCS%%share/doc/lingoteach/img/use-onebyone.png -%%PORTDOCS%%share/doc/lingoteach/img/use-search.png -%%PORTDOCS%%share/doc/lingoteach/index.html -%%PORTDOCS%%share/doc/lingoteach/lingoteach-conf.html -%%PORTDOCS%%share/doc/lingoteach/lingoteach-install.html -%%PORTDOCS%%share/doc/lingoteach/lingoteach-use.html -%%PORTDOCS%%share/doc/lingoteach/lingoteach.css -%%PORTDOCS%%share/doc/lingoteach/ln-legal.html -share/lingoteach/AUTHORS -share/lingoteach/COPYING -share/lingoteach/README -share/lingoteach/data/basic.xml -share/lingoteach/data/language.dtd -share/lingoteach/data/language.xml -share/lingoteach/data/lingoteach.dtd -share/lingoteach/data/rules.en.txt -share/locale/da/LC_MESSAGES/lingoteach.mo -share/locale/de/LC_MESSAGES/lingoteach.mo -share/locale/eo/LC_MESSAGES/lingoteach.mo -share/locale/fr/LC_MESSAGES/lingoteach.mo -share/locale/hu/LC_MESSAGES/lingoteach.mo -share/locale/id/LC_MESSAGES/lingoteach.mo -share/locale/pt_BR/LC_MESSAGES/lingoteach.mo -share/locale/sv/LC_MESSAGES/lingoteach.mo -@dirrm share/lingoteach/data -@dirrm share/lingoteach -%%PORTDOCS%%@dirrm share/doc/lingoteach/img -%%PORTDOCS%%@dirrm share/doc/lingoteach +%%NLS%%share/locale/da/LC_MESSAGES/lingoteach.mo +%%NLS%%share/locale/de/LC_MESSAGES/lingoteach.mo +%%NLS%%share/locale/eo/LC_MESSAGES/lingoteach.mo +%%NLS%%share/locale/fr/LC_MESSAGES/lingoteach.mo +%%NLS%%share/locale/hu/LC_MESSAGES/lingoteach.mo +%%NLS%%share/locale/id/LC_MESSAGES/lingoteach.mo +%%NLS%%share/locale/pt_BR/LC_MESSAGES/lingoteach.mo +%%NLS%%share/locale/sv/LC_MESSAGES/lingoteach.mo |