aboutsummaryrefslogtreecommitdiff
path: root/www/kannel/Makefile
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 13:32:37 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 13:32:37 +0000
commitab64f335b21e262cd4228c3b854e9bf3c1844914 (patch)
tree818c4b6ea1e90f2b239131b5c080bae60a032801 /www/kannel/Makefile
parent0d42f2d45b84652a6a73eb76c81ad938a7d47916 (diff)
downloadports-ab64f335b21e262cd4228c3b854e9bf3c1844914.tar.gz
ports-ab64f335b21e262cd4228c3b854e9bf3c1844914.zip
Notes
Diffstat (limited to 'www/kannel/Makefile')
-rw-r--r--www/kannel/Makefile49
1 files changed, 25 insertions, 24 deletions
diff --git a/www/kannel/Makefile b/www/kannel/Makefile
index a220bc50f737..b495ccd5ef37 100644
--- a/www/kannel/Makefile
+++ b/www/kannel/Makefile
@@ -5,37 +5,38 @@
# $FreeBSD$
PORTNAME= kannel
-PORTVERSION= 1.0.3
+PORTVERSION= 1.2.1
CATEGORIES= www
-MASTER_SITES= http://www.kannel.3glab.org/download/${PORTVERSION}/
+MASTER_SITES= http://www.kannel.3glab.org/download/%SUBDIR%/
+MASTER_SITE_SUBDIR= ${PORTVERSION}
DISTNAME= gateway-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
-LIB_DEPENDS= xml2:${PORTSDIR}/textproc/libxml2
+LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2
-USE_AUTOCONF= yes
+USE_REINPLACE= yes
USE_GMAKE= yes
-WRKSRC= ${WRKDIR}/${DISTNAME}/
-CFLAGS+= ${PTHREAD_LIBS}
-CONFIGURE_ARGS+= --with-malloc=native
-
-do-install:
-.if !defined(NOPORTDOCS)
- @cd ${WRKSRC} && make install-docs
-.endif
- @cd ${WRKSRC} && make install
- ${INSTALL_DATA} ${WRKSRC}/gw/wapkannel.conf ${PREFIX}/etc/
- ${INSTALL_DATA} ${WRKSRC}/gw/smskannel.conf ${PREFIX}/etc/
-
-.if !defined(NOPORTDOCS)
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
+CONFIGURE_ARGS= --with-malloc=native --enable-start-stop-daemon=no
+
+MAN1= seewbmp.1 wmlsc.1 wmlsdasm.1
+MAN8= kannel.8 run_kannel_box.8
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|-lc_r|${PTHREAD_LIBS:S/"//g}|g' ${WRKSRC}/configure
+
post-install:
- @cd ${WRKSRC}/doc && \
- for a in `/usr/bin/find . -type f | ${SED} -e 's:^\./::g'` ; \
- do ${ECHO_CMD} share/doc/kannel/$$a >> ${TMPPLIST} ; done
- @${ECHO_CMD} "@dirrm share/doc/kannel/arch" >> ${TMPPLIST}
- @${ECHO_CMD} "@dirrm share/doc/kannel/userguide" >> ${TMPPLIST}
- @${ECHO_CMD} "@dirrm share/doc/kannel" >> ${TMPPLIST}
-.endif
+.for file in gw/wapkannel.conf gw/smskannel.conf
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/etc
+.endfor
+.for file in seewbmp wmlsc wmlsdasm
+ @${STRIP_CMD} ${PREFIX}/bin/${file}
+.endfor
+.for file in bearerbox run_kannel_box smsbox wapbox
+ @${STRIP_CMD} ${PREFIX}/sbin/${file}
+.endfor
.include <bsd.port.mk>