diff options
Diffstat (limited to 'devel/stfl/Makefile')
-rw-r--r-- | devel/stfl/Makefile | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/devel/stfl/Makefile b/devel/stfl/Makefile index b3925c548a47..3ba9a0ab3c3d 100644 --- a/devel/stfl/Makefile +++ b/devel/stfl/Makefile @@ -6,7 +6,7 @@ # PORTNAME= stfl -PORTVERSION= 0.8 +PORTVERSION= 0.15 CATEGORIES= devel MASTER_SITES= http://www.clifford.at/stfl/ CENKES @@ -15,22 +15,35 @@ COMMENT= Structured Terminal Forms Language/Library USE_LDCONFIG= yes USE_GMAKE= yes +USE_ICONV= yes ALL_TARGET= libstfl.so -CFLAGS+= -fPIC -PLIST_FILES= lib/libstfl.so.0 lib/libstfl.so include/stfl.h +PLIST_FILES= lib/libstfl.so.1 lib/libstfl.so include/stfl.h +CFLAGS+= -I${LOCALBASE}/include + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 503000 +BROKEN= Unicoded ncurses require 5.3 +.endif + +.if ${OSVERSION} < 602107 || (${OSVERSION} > 700000 && ${OSVERSION} < 700033) +LIB_DEPENDS+= ncursesw.5:${PORTSDIR}/devel/ncurses +NCURSES_INC= ncurses/ +.endif post-patch: - @${REINPLACE_CMD} -e 's|\.a|.so|g;/ranlib/d;s|ar qc|${CC} -shared -fPIC -o|'\ - ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e 's|\.a|.so|g;/ranlib/d;s|ar qc|${CC} ${CFLAGS} -shared -fPIC -o|;\ + s|sed -r|sed -E|;s|-Os||;/gcc/d' ${WRKSRC}/Makefile @${REINPLACE_CMD} -e 's|alloca.h|stdlib.h|' ${WRKSRC}/widgets/*.c + @${REINPLACE_CMD} -e 's|ncursesw/|${NCURSES_INC}|' ${WRKSRC}/stfl_internals.h @${ECHO_CMD} 'prefix = ${PREFIX}' > ${WRKSRC}/Makefile.cfg pre-build: - @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} Makefile.deps) + @cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} Makefile.deps do-install: - @${INSTALL_PROGRAM} ${WRKSRC}/libstfl.so ${PREFIX}/lib/libstfl.so.0 - @${LN} -sf ${PREFIX}/lib/libstfl.so.0 ${PREFIX}/lib/libstfl.so + @${INSTALL_PROGRAM} ${WRKSRC}/libstfl.so ${PREFIX}/lib/libstfl.so.1 + @${LN} -sf ${PREFIX}/lib/libstfl.so.1 ${PREFIX}/lib/libstfl.so @${INSTALL_DATA} ${WRKSRC}/stfl.h ${PREFIX}/include/ -.include <bsd.port.mk> +.include <bsd.port.post.mk> |