diff options
author | tijl <tijl@FreeBSD.org> | 2014-07-03 02:20:33 +0800 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2014-07-03 02:20:33 +0800 |
commit | 90de0aa172bdf6db02fdc584daf994950a191de7 (patch) | |
tree | a7c2e34da20d5845463a2f41059b5379df607e64 /textproc | |
parent | 0eb8cbc355fe6c3c3daa8b9fd86cdd9cf9398fee (diff) | |
download | freebsd-ports-gnome-90de0aa172bdf6db02fdc584daf994950a191de7.tar.gz freebsd-ports-gnome-90de0aa172bdf6db02fdc584daf994950a191de7.tar.zst freebsd-ports-gnome-90de0aa172bdf6db02fdc584daf994950a191de7.zip |
- Add USES=libtool
- Fix problem with DATADIRNAME by setting CPPFLAGS/LIBS instead of patching
- Silence post-patch
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/stardict3/Makefile | 16 | ||||
-rw-r--r-- | textproc/stardict3/pkg-plist | 10 |
2 files changed, 9 insertions, 17 deletions
diff --git a/textproc/stardict3/Makefile b/textproc/stardict3/Makefile index 824ee11e868f..d1b377cd3831 100644 --- a/textproc/stardict3/Makefile +++ b/textproc/stardict3/Makefile @@ -3,7 +3,7 @@ PORTNAME= stardict PORTVERSION= 3.0.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= textproc MASTER_SITES= GOOGLE_CODE DIST_SUBDIR= stardict @@ -20,8 +20,9 @@ CONFIGURE_ARGS= --disable-festival \ --disable-gucharmap \ --disable-espeak \ --disable-updateinfo -LIBS= -L${LOCALBASE}/lib -USES= tar:bzip2 gettext gmake pathfix pkgconfig +CPPFLAGS+= -I${LOCALBASE}/include +LIBS+= -L${LOCALBASE}/lib +USES= gettext gmake libtool pathfix pkgconfig tar:bzip2 CONFIGURE_WRKSRC= ${WRKSRC}/dict BUILD_WRKSRC= ${CONFIGURE_WRKSRC} INSTALL_WRKSRC= ${CONFIGURE_WRKSRC} @@ -47,13 +48,14 @@ MAKE_ARGS+= AUTOMAKE="${TRUE}" ACLOCAL="${TRUE}" post-patch: .if !${PORT_OPTIONS:MGNOME} - ${REINPLACE_CMD} -e '/DATADIRNAME=lib/s,lib,share,' ${WRKSRC}/dict/m4/intltool.m4 - ${REINPLACE_CMD} -e '/^SUBDIRS/s,help,,' ${WRKSRC}/dict/Makefile.in - ${REINPLACE_CMD} -e '/^GNOME_DOC_INIT/d' \ + @${REINPLACE_CMD} -e '/^SUBDIRS/s,help,,' ${WRKSRC}/dict/Makefile.in + @${REINPLACE_CMD} -e '/^GNOME_DOC_INIT/d' \ -e '/^help\/Makefile/d' ${WRKSRC}/dict/configure.ac .endif - ${REINPLACE_CMD} -e 's,/usr/share,${PREFIX}/share,g' \ + @${REINPLACE_CMD} -e 's,/usr/share,${PREFIX}/share,g' \ ${WRKSRC}/dict/src/conf.cpp + @${REINPLACE_CMD} '/^stardict_LDADD =/s/$$/ -lgmodule-2.0/' \ + ${WRKSRC}/dict/src/Makefile.in pre-configure: cd ${WRKSRC}/lib && \ diff --git a/textproc/stardict3/pkg-plist b/textproc/stardict3/pkg-plist index 8d1cfca931fc..94a163ecf359 100644 --- a/textproc/stardict3/pkg-plist +++ b/textproc/stardict3/pkg-plist @@ -1,23 +1,13 @@ bin/stardict -lib/stardict/plugins/stardict_dictdotcn.la lib/stardict/plugins/stardict_dictdotcn.so -lib/stardict/plugins/stardict_html_parsedata.la lib/stardict/plugins/stardict_html_parsedata.so -lib/stardict/plugins/stardict_man.la lib/stardict/plugins/stardict_man.so -lib/stardict/plugins/stardict_powerword_parsedata.la lib/stardict/plugins/stardict_powerword_parsedata.so -lib/stardict/plugins/stardict_qqwry.la lib/stardict/plugins/stardict_qqwry.so -lib/stardict/plugins/stardict_spell.la lib/stardict/plugins/stardict_spell.so -lib/stardict/plugins/stardict_wiki_parsedata.la lib/stardict/plugins/stardict_wiki_parsedata.so -lib/stardict/plugins/stardict_wordnet.la lib/stardict/plugins/stardict_wordnet.so -lib/stardict/plugins/stardict_wordnet_parsedata.la lib/stardict/plugins/stardict_wordnet_parsedata.so -lib/stardict/plugins/stardict_xdxf_parsedata.la lib/stardict/plugins/stardict_xdxf_parsedata.so %%GNOME%%libdata/bonobo/servers/GNOME_Stardict.server man/man1/stardict.1.gz |