aboutsummaryrefslogtreecommitdiffstats
path: root/devel/stfl
diff options
context:
space:
mode:
authorsat <sat@FreeBSD.org>2007-08-02 21:41:49 +0800
committersat <sat@FreeBSD.org>2007-08-02 21:41:49 +0800
commit4c9f01a8412228169d740e77d5979d27316e1e60 (patch)
tree9b9ba87da5a12d1e83033db9c69811feeb847247 /devel/stfl
parent53f4ed48d2bed0977af686bafa96bc493f1ed4c8 (diff)
downloadfreebsd-ports-gnome-4c9f01a8412228169d740e77d5979d27316e1e60.tar.gz
freebsd-ports-gnome-4c9f01a8412228169d740e77d5979d27316e1e60.tar.zst
freebsd-ports-gnome-4c9f01a8412228169d740e77d5979d27316e1e60.zip
- Update to 0.15
Diffstat (limited to 'devel/stfl')
-rw-r--r--devel/stfl/Makefile31
-rw-r--r--devel/stfl/distinfo6
2 files changed, 25 insertions, 12 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>
diff --git a/devel/stfl/distinfo b/devel/stfl/distinfo
index cffdf36c7b46..b7efd062b3dc 100644
--- a/devel/stfl/distinfo
+++ b/devel/stfl/distinfo
@@ -1,3 +1,3 @@
-MD5 (stfl-0.8.tar.gz) = 87a7df20c007d91181c3daa70270bffc
-SHA256 (stfl-0.8.tar.gz) = 7c922fdc59c180b278dc9ef5dc76d6900cc6489d5a70a7f6b4275cae9a6afa1c
-SIZE (stfl-0.8.tar.gz) = 28313
+MD5 (stfl-0.15.tar.gz) = 7b479ccf51deb85e6bab29e6f1616cdc
+SHA256 (stfl-0.15.tar.gz) = 933d86569ad64da8591305db6175ee348d4d927940e342249270f15040c72f17
+SIZE (stfl-0.15.tar.gz) = 38746