openbsd-ports/x11/gnustep/base/Makefile
sthen 8e1f742235 SHARED_LIBS and PKGNAME bumps for libm. The library version
number is used in a directory name for resource files; abstract
it out (and compress PLIST) with SUBST_VARS.
2008-07-28 23:55:28 +00:00

43 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.14 2008/07/28 23:55:28 sthen Exp $
COMMENT= GNUstep base library
DISTNAME= gnustep-base-1.16.1
PKGNAME= ${DISTNAME}p0
SHARED_LIBS= gnustep-base 2.0 # .1.16.1
CATEGORIES= devel
LIBDIR= lib/GNUstep/Libraries/gnustep-base/Versions/${LIBgnustep-base_VERSION}
SUBST_VARS= LIBDIR
HOMEPAGE= http://www.gnustep.org/
WANTLIB= c crypto gcrypt gpg-error m objc pthread ssl xml2 z
.if ${MACHINE_ARCH} != "amd64"
WANTLIB+= iberty
.endif
MASTER_SITES= ftp://ftp.gnustep.org/pub/gnustep/core/
MODULES= x11/gnustep \
devel/gettext
LIB_DEPENDS= avcall.>=1,callback.>=1::devel/ffcall \
gmp.>=7::devel/gmp \
xslt.>=3::textproc/libxslt \
gnutls.>=13::security/gnutls
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --disable-procfs \
--disable-procfs-psinfo
pre-configure:
@perl -pi -e 's,^MAJOR_VERSION=.*,MAJOR_VERSION=${LIBgnustep-base_VERSION:R},g;' \
-e 's,^MINOR_VERSION=.*,MINOR_VERSION=${LIBgnustep-base_VERSION:E},g' \
${WRKSRC}/Version
post-install:
@rm ${PREFIX}/lib/GNUstep/Libraries/gnustep-base/Versions/${LIBgnustep-base_VERSION}/Resources/NSTimeZones/.README.swp
.include <bsd.port.mk>