2005-05-22 22:07:36 +02:00
|
|
|
# $NetBSD: Makefile,v 1.43 2005/05/22 20:07:54 jlam Exp $
|
2000-08-25 18:03:42 +02:00
|
|
|
|
2004-11-30 17:44:47 +01:00
|
|
|
DISTNAME= pwlib-v1_8_3-src
|
2004-12-01 14:10:06 +01:00
|
|
|
PKGNAME= pwlib-1.8.3
|
2004-12-01 14:40:54 +01:00
|
|
|
PKGREVISION= 1
|
2004-11-30 17:44:47 +01:00
|
|
|
CATEGORIES= devel
|
2004-10-09 16:01:03 +02:00
|
|
|
MASTER_SITES+= http://www.voxgratia.org/releases/
|
2004-11-30 17:44:47 +01:00
|
|
|
EXTRACT_SUFX= -tar.gz
|
2002-02-08 07:29:42 +01:00
|
|
|
|
2004-11-30 17:44:47 +01:00
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
|
|
|
HOMEPAGE= http://sourceforge.net/projects/openh323/
|
|
|
|
COMMENT= Portable Windows Libary
|
2002-02-08 07:29:42 +01:00
|
|
|
|
|
|
|
BUILD_DEPENDS= bison-[0-9]*:../../devel/bison
|
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}/pwlib
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
2005-05-16 03:32:22 +02:00
|
|
|
PKGSRC_USE_TOOLS+= tar
|
2004-10-16 16:11:23 +02:00
|
|
|
USE_LANGUAGES= c c++
|
2002-02-08 07:29:42 +01:00
|
|
|
USE_LIBTOOL= yes
|
2004-11-30 17:44:47 +01:00
|
|
|
USE_PKGINSTALL= yes
|
2004-10-08 23:02:53 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2004-12-01 14:10:06 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-sasl --disable-openldap
|
2004-11-30 17:44:47 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-expat --disable-video --disable-qos
|
2002-12-08 02:30:23 +01:00
|
|
|
PTHREAD_OPTS+= require
|
|
|
|
|
2004-12-03 16:14:50 +01:00
|
|
|
BUILD_TARGET= opt
|
2004-11-30 17:44:47 +01:00
|
|
|
MAKE_ENV+= PWLIBDIR="${WRKSRC}" CC="${CC}" CPLUS="${CXX}"
|
2002-02-08 07:29:42 +01:00
|
|
|
|
2002-12-01 19:31:41 +01:00
|
|
|
FILES_SUBST+= LIBTOOL="${LIBTOOL}"
|
|
|
|
FILES_SUBST+= PTHREADS_PREFIX="${BUILDLINK_PREFIX.pthread}"
|
2002-02-08 07:29:42 +01:00
|
|
|
|
2004-10-09 16:01:03 +02:00
|
|
|
post-extract:
|
|
|
|
cd ${WRKDIR}; ${TAR} -xf ${DISTNAME:S/$/-tar/}
|
|
|
|
|
2002-12-01 19:31:41 +01:00
|
|
|
post-patch:
|
|
|
|
${_PKG_SILENT}cd ${WRKSRC}/make; \
|
|
|
|
for f in unix.mak lib.mak common.mak; do \
|
|
|
|
${SED} ${FILES_SUBST_SED} $$f > $$f.sed; \
|
2004-11-30 17:44:47 +01:00
|
|
|
${MV} -f $$f.sed $$f; \
|
2002-12-01 19:31:41 +01:00
|
|
|
done
|
|
|
|
${LN} -sf ${WRKDIR} ${WRKSRC}/share
|
2002-02-08 07:29:42 +01:00
|
|
|
|
2002-12-01 19:31:41 +01:00
|
|
|
do-install:
|
2004-11-30 17:44:47 +01:00
|
|
|
cd ${WRKSRC}/src/ptlib/unix && ${MAKE_ENV} ${GMAKE} install
|
2004-10-09 16:01:03 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/pwlib/make
|
2002-02-08 07:29:42 +01:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/ptclib
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/ptlib/unix/ptlib
|
2004-12-01 16:41:09 +01:00
|
|
|
cd ${WRKSRC}/make; ${INSTALL_SCRIPT} ptlib-config ${PREFIX}/bin; \
|
2002-12-01 19:31:41 +01:00
|
|
|
for f in *.mak; do \
|
2004-12-01 16:41:09 +01:00
|
|
|
${INSTALL_DATA} $$f ${PREFIX}/share/pwlib/make; \
|
2002-02-08 07:29:42 +01:00
|
|
|
done
|
2004-10-09 16:01:03 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/version.h ${PREFIX}/include/ptlib
|
2004-12-01 16:41:09 +01:00
|
|
|
cd ${WRKSRC}; \
|
2004-10-09 16:01:03 +02:00
|
|
|
for f in `${FIND} include -name CVS -prune -o -name wince -prune -o -name msos -prune -o -type f -print`; do \
|
|
|
|
${INSTALL_DATA} $$f ${PREFIX}/$$f; \
|
|
|
|
done
|
2002-02-08 07:29:42 +01:00
|
|
|
|
2004-12-01 14:10:06 +01:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
2004-05-08 08:41:33 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2000-08-25 18:03:42 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|