aboutsummaryrefslogtreecommitdiff
path: root/devel/stfl
diff options
context:
space:
mode:
authorAndrew Pantyukhin <sat@FreeBSD.org>2007-12-21 13:08:06 +0000
committerAndrew Pantyukhin <sat@FreeBSD.org>2007-12-21 13:08:06 +0000
commitf1d4bc17c46c24392efabddff0971380ca51a0b3 (patch)
tree3d65297160a9afaae572401a51a82cbe8acdda01 /devel/stfl
parent61a4b01bd8a8f5f74579abb146033349500a570b (diff)
downloadports-f1d4bc17c46c24392efabddff0971380ca51a0b3.tar.gz
ports-f1d4bc17c46c24392efabddff0971380ca51a0b3.zip
- Update to 0.18
- Prefer ncursesw from ports when both ports and /lib versions are available, to avoid conflict with newsbeuter, which depends on stfl and prefers ncursesw from ports.
Notes
Notes: svn path=/head/; revision=204262
Diffstat (limited to 'devel/stfl')
-rw-r--r--devel/stfl/Makefile16
-rw-r--r--devel/stfl/distinfo6
2 files changed, 14 insertions, 8 deletions
diff --git a/devel/stfl/Makefile b/devel/stfl/Makefile
index 765cb9d4726c..74cf88fee0c6 100644
--- a/devel/stfl/Makefile
+++ b/devel/stfl/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= stfl
-PORTVERSION= 0.15
+PORTVERSION= 0.18
CATEGORIES= devel
MASTER_SITES= http://www.clifford.at/stfl/ CENKES
@@ -19,6 +19,8 @@ USE_ICONV= yes
ALL_TARGET= libstfl.so
PLIST_FILES= lib/libstfl.so.1 lib/libstfl.so include/stfl.h
CFLAGS+= -I${LOCALBASE}/include
+LDLIBS+= -L${LOCALBASE}/lib
+MAKE_ENV= LDLIBS="${LDLIBS}"
.include <bsd.port.pre.mk>
@@ -32,14 +34,18 @@ NCURSES_INC= ncurses/
.endif
post-patch:
- @${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;/-MM/s|-I.|$${CFLAGS}|' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's|\.a|.so|g;/ranlib/d;\
+ s|ar qc|$${CC} $${CFLAGS} ${PTHREAD_LIBS} $${LDLIBS} -shared -fPIC -o|;\
+ s|sed -r|sed -E|;s|-Os||;/gcc/d;/-MM/s|-I.|$${CFLAGS}|'\
+ ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|alloca.h|stdlib.h|' ${WRKSRC}/widgets/*.c
- @${REINPLACE_CMD} -e 's|ncursesw/|${NCURSES_INC}|' ${WRKSRC}/stfl_internals.h
+ @${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.1
diff --git a/devel/stfl/distinfo b/devel/stfl/distinfo
index b7efd062b3dc..f65093b96775 100644
--- a/devel/stfl/distinfo
+++ b/devel/stfl/distinfo
@@ -1,3 +1,3 @@
-MD5 (stfl-0.15.tar.gz) = 7b479ccf51deb85e6bab29e6f1616cdc
-SHA256 (stfl-0.15.tar.gz) = 933d86569ad64da8591305db6175ee348d4d927940e342249270f15040c72f17
-SIZE (stfl-0.15.tar.gz) = 38746
+MD5 (stfl-0.18.tar.gz) = 06e55d60b45332afdd15d1482470f2ac
+SHA256 (stfl-0.18.tar.gz) = 2295378d21596eb4aa5c775bfd0385db82825a18f093a9c0ba2a32c03f423832
+SIZE (stfl-0.18.tar.gz) = 39188