2010-07-18 14:49:01 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.16 2010/07/18 18:49:01 naddy Exp $
|
2002-03-13 18:38:05 -05:00
|
|
|
|
2005-03-12 01:10:20 -05:00
|
|
|
# see md.h, add others
|
2009-10-06 05:25:12 -04:00
|
|
|
ONLY_FOR_ARCHS = amd64 alpha i386 sparc
|
2001-08-15 12:47:07 -04:00
|
|
|
|
2009-10-06 05:25:12 -04:00
|
|
|
COMMENT = threaded library for writing Internet applications
|
2001-08-15 12:47:07 -04:00
|
|
|
|
2009-10-06 05:25:12 -04:00
|
|
|
DISTNAME = st-1.9
|
|
|
|
PKGNAME = lib${DISTNAME}
|
|
|
|
SHARED_LIBS = st 2.0
|
|
|
|
CATEGORIES = net devel
|
2009-05-24 16:12:51 -04:00
|
|
|
|
2009-10-06 05:25:12 -04:00
|
|
|
HOMEPAGE = http://state-threads.sourceforge.net/
|
2001-08-15 12:47:07 -04:00
|
|
|
|
2009-10-06 05:25:12 -04:00
|
|
|
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
|
2001-08-15 12:47:07 -04:00
|
|
|
|
2009-05-24 16:12:51 -04:00
|
|
|
# MPLv1.1 or GPLv2
|
2009-10-06 05:25:12 -04:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
2001-08-15 12:47:07 -04:00
|
|
|
|
2009-10-06 05:25:12 -04:00
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=state-threads/}
|
2002-01-25 11:33:51 -05:00
|
|
|
|
2009-10-06 05:25:12 -04:00
|
|
|
MAKE_FLAGS = CC='${CC}' CFLAGS='${CFLAGS} -fPIC -DOPENBSD' \
|
2005-12-30 17:43:56 -05:00
|
|
|
LD='${CC}' LDFLAGS='-shared -fPIC' \
|
|
|
|
VERSION=${LIBst_VERSION}
|
2001-08-15 12:47:07 -04:00
|
|
|
|
2009-10-06 05:25:12 -04:00
|
|
|
USE_GMAKE = Yes
|
|
|
|
ALL_TARGET = openbsd-optimized
|
|
|
|
NO_REGRESS = Yes
|
2001-08-15 12:47:07 -04:00
|
|
|
|
|
|
|
do-install:
|
2005-12-30 17:43:56 -05:00
|
|
|
${INSTALL_PROGRAM} \
|
2010-07-18 14:49:01 -04:00
|
|
|
${WRKSRC}/OPENBSD_${OSREV}_OPT/libst.so.${LIBst_VERSION} \
|
2001-09-30 22:20:51 -04:00
|
|
|
${PREFIX}/lib
|
2010-07-18 14:49:01 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/OPENBSD_${OSREV}_OPT/libst.a \
|
2001-09-30 22:20:51 -04:00
|
|
|
${PREFIX}/lib
|
2010-07-18 14:49:01 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/OPENBSD_${OSREV}_OPT/st.h \
|
2001-09-30 22:20:51 -04:00
|
|
|
${PREFIX}/include
|
2001-08-15 12:47:07 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libst
|
2003-01-03 15:46:04 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/* ${PREFIX}/share/doc/libst
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/libst
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* \
|
|
|
|
${PREFIX}/share/examples/libst
|
2001-08-15 12:47:07 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|