diff options
author | Tijl Coosemans <tijl@FreeBSD.org> | 2014-01-30 16:05:25 +0000 |
---|---|---|
committer | Tijl Coosemans <tijl@FreeBSD.org> | 2014-01-30 16:05:25 +0000 |
commit | 5470065ca61ce6fb1fec62b240583d23edb13df1 (patch) | |
tree | e76aca893ea69de16be47671a0cb30178a808d47 | |
parent | fbebb043a5082fb58429677e2acbba264843b95e (diff) | |
download | ports-5470065ca61ce6fb1fec62b240583d23edb13df1.tar.gz ports-5470065ca61ce6fb1fec62b240583d23edb13df1.zip |
Notes
-rw-r--r-- | devel/stfl/Makefile | 34 | ||||
-rw-r--r-- | www/newsbeuter/Makefile | 15 |
2 files changed, 18 insertions, 31 deletions
diff --git a/devel/stfl/Makefile b/devel/stfl/Makefile index b3867d83693c..dadfb0a23128 100644 --- a/devel/stfl/Makefile +++ b/devel/stfl/Makefile @@ -3,6 +3,7 @@ PORTNAME= stfl PORTVERSION= 0.22 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://www.clifford.at/stfl/ @@ -11,37 +12,30 @@ COMMENT= Structured Terminal Forms Language/Library LICENSE= GPLv3 +USES= gmake iconv:wchar_t ncurses USE_LDCONFIG= yes -USES= gmake iconv ncurses -ALL_TARGET= libstfl.so -PLIST_FILES= lib/libstfl.so.1 lib/libstfl.so include/stfl.h \ - libdata/pkgconfig/stfl.pc + +PLIST_FILES= include/stfl.h lib/libstfl.a lib/libstfl.so lib/libstfl.so.0 \ + lib/libstfl.so.0.22 libdata/pkgconfig/stfl.pc CFLAGS+= -I${LOCALBASE}/include -LDLIBS+= -L${LOCALBASE}/lib -MAKE_ENV= LDLIBS="${LDLIBS}" +LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB} +MAKE_ENV= LDLIBS="${LDFLAGS}" post-patch: - @${REINPLACE_CMD} -e 's|\.a|.so|g;/ranlib/d;\ - s|ar qc|$${CC} $${CFLAGS} $${LDLIBS} -pthread -shared -fPIC -o|;\ - s|sed -r|sed -E|;s|-Os||;/gcc/d;/-MM/s|-I.|$${CFLAGS}|'\ + @${REINPLACE_CMD} -e 's|-Os||;/gcc/d;/pkgconfig/s|$$(libdir)|libdata|' \ ${WRKSRC}/Makefile - @${REINPLACE_CMD} -e 's|alloca.h|stdlib.h|' ${WRKSRC}/widgets/*.c + @${REINPLACE_CMD} -e '/Libs.private/s|$$| ${ICONV_LIB}|' \ + ${WRKSRC}/stfl.pc.in @${REINPLACE_CMD} -e 's|ncursesw/|${NCURSESINC}/|'\ ${WRKSRC}/stfl_internals.h @${ECHO_CMD} 'prefix = ${PREFIX}' > ${WRKSRC}/Makefile.cfg + @${ECHO_CMD} 'libdir = lib' >> ${WRKSRC}/Makefile.cfg pre-build: @cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV}\ - ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} Makefile.deps - -post-build: - @cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV}\ - ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} stfl.pc + ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} Makefile.deps -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/libstfl.so ${STAGEDIR}${PREFIX}/lib/libstfl.so.1 - ${LN} -sf ${PREFIX}/lib/libstfl.so.1 ${STAGEDIR}${PREFIX}/lib/libstfl.so - ${INSTALL_DATA} ${WRKSRC}/stfl.h ${STAGEDIR}${PREFIX}/include/ - ${INSTALL_DATA} ${WRKSRC}/stfl.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/ +post-install: + ${LN} -s libstfl.so.0.22 ${STAGEDIR}${PREFIX}/lib/libstfl.so.0 .include <bsd.port.mk> diff --git a/www/newsbeuter/Makefile b/www/newsbeuter/Makefile index 9153988c875d..177a17d2597a 100644 --- a/www/newsbeuter/Makefile +++ b/www/newsbeuter/Makefile @@ -3,6 +3,7 @@ PORTNAME= newsbeuter PORTVERSION= 2.8 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://newsbeuter.org/downloads/ @@ -17,24 +18,16 @@ LIB_DEPENDS= stfl:${PORTSDIR}/devel/stfl \ libjson.so:${PORTSDIR}/devel/json-c OPTIONS_DEFINE= PODCAST +OPTIONS_DEFAULT=PODCAST +OPTIONS_SUB= yes PODCAST_DESC= Podcast client (podbeuter) -OPTIONS_DEFAULT= PODCAST - -USES= gettext iconv ncurses gmake pkgconfig perl5 +USES= gettext gmake iconv:translit ncurses perl5 pkgconfig USE_PERL5= build USE_SQLITE= yes USE_GNOME= libxml2 USE_GCC= any -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MPODCAST} -PLIST_SUB+= PODCAST="" -.else -PLIST_SUB+= PODCAST="@comment " -.endif - post-patch: ${REINPLACE_CMD} -e "s,share/man,man,; \ /^prefix/s|=.*|=${PREFIX}|; /^CXX=/d; \ |