2014-02-13 00:17:32 +01:00
|
|
|
# $NetBSD: Makefile,v 1.66 2014/02/12 23:17:50 tron 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
|
2014-02-13 00:17:32 +01:00
|
|
|
PKGREVISION= 11
|
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
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2004-11-30 17:44:47 +01:00
|
|
|
HOMEPAGE= http://sourceforge.net/projects/openh323/
|
2009-11-30 00:42:35 +01:00
|
|
|
COMMENT= Portable Windows Library
|
|
|
|
# note: obsoleted by devel/ptlib
|
|
|
|
|
2010-01-07 08:36:53 +01:00
|
|
|
NOT_FOR_PLATFORM+= ${LP64PLATFORMS}
|
2002-02-08 07:29:42 +01:00
|
|
|
|
2011-03-21 13:27:11 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= destdir
|
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}/pwlib
|
2009-01-30 09:18:45 +01:00
|
|
|
USE_TOOLS+= bison gmake
|
2004-10-16 16:11:23 +02:00
|
|
|
USE_LANGUAGES= c c++
|
2002-02-08 07:29:42 +01:00
|
|
|
USE_LIBTOOL= 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
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_ENV+= PWLIBDIR=${WRKSRC:Q} CC=${CC:Q} CPLUS=${CXX:Q}
|
2002-02-08 07:29:42 +01:00
|
|
|
|
2006-01-08 05:57:55 +01:00
|
|
|
SUBST_CLASSES+= paths
|
|
|
|
SUBST_FILES.paths= make/unix.mak make/lib.mak make/common.mak make/pwlib.mak
|
|
|
|
SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
|
|
|
|
SUBST_SED.paths+= -e 's,@LIBTOOL@,${LIBTOOL},g'
|
|
|
|
SUBST_SED.paths+= -e 's,@BSD_INSTALL_LIB@,${INSTALL_LIB},g'
|
|
|
|
SUBST_SED.paths+= -e 's,@BSD_INSTALL_PROGRAM@,${INSTALL_PROGRAM},g'
|
|
|
|
SUBST_SED.paths+= -e 's,@PTHREAD_FLAGS@,${PTHREAD_LDFLAGS} ${PTHREAD_LIBS},g'
|
|
|
|
SUBST_SED.paths+= -e 's,@LIBOSSAUDIO@,${LIBOSSAUDIO},g'
|
|
|
|
SUBST_STAGE.paths= post-patch
|
2002-02-08 07:29:42 +01:00
|
|
|
|
2004-10-09 16:01:03 +02:00
|
|
|
post-extract:
|
2006-01-08 05:57:55 +01:00
|
|
|
mkdir ${WRKSRC}/share
|
|
|
|
${LN} -s ../../pwlib ${WRKSRC}/share/pwlib
|
2002-02-08 07:29:42 +01:00
|
|
|
|
2011-03-21 13:27:11 +01:00
|
|
|
INSTALL_MAKE_FLAGS+= PREFIX=${DESTDIR}${PREFIX}
|
|
|
|
|
|
|
|
INSTALL_DIRS= src/ptlib/unix
|
|
|
|
|
|
|
|
INSTALLATION_DIRS+= bin lib
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/pwlib/make
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/ptclib
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/ptlib/unix/ptlib
|
|
|
|
cd ${WRKSRC}/make; ${INSTALL_SCRIPT} ptlib-config ${DESTDIR}${PREFIX}/bin; \
|
2002-12-01 19:31:41 +01:00
|
|
|
for f in *.mak; do \
|
2011-03-21 13:27:11 +01:00
|
|
|
${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/share/pwlib/make; \
|
2002-02-08 07:29:42 +01:00
|
|
|
done
|
2011-03-21 13:27:11 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/version.h ${DESTDIR}${PREFIX}/include/ptlib
|
2004-12-01 16:41:09 +01:00
|
|
|
cd ${WRKSRC}; \
|
2006-04-12 20:30:04 +02:00
|
|
|
for f in `${FIND} include -name CVS -prune -o -name \*.orig -prune -o -name wince -prune -o -name msos -prune -o -type f -print`; do \
|
2011-03-21 13:27:11 +01:00
|
|
|
${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/$$f; \
|
2004-10-09 16:01:03 +02:00
|
|
|
done
|
2002-02-08 07:29:42 +01:00
|
|
|
|
2004-12-01 14:10:06 +01:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
2006-03-09 22:04:39 +01:00
|
|
|
.include "../../mk/oss.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"
|