openbsd-ports/x11/gnustep/base/Makefile

49 lines
1.2 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.24 2010/03/31 09:36:07 ajacoutot Exp $
COMMENT= GNUstep base library
DISTNAME= gnustep-base-1.18.0
PKGNAME= ${DISTNAME}p3
SHARED_LIBS= gnustep-base 2.1 # .1.16.4
CATEGORIES= devel
LIBDIR= lib/GNUstep/Libraries/gnustep-base/Versions/${LIBgnustep-base_VERSION}
SUBST_VARS= LIBDIR
HOMEPAGE= http://www.gnustep.org/
WANTLIB += c crypto gcrypt m objc pthread ssl xml2
2009-10-06 15:20:51 -04:00
WANTLIB += z
.if ${MACHINE_ARCH} != "i386"
WANTLIB += iberty
.endif
2008-10-03 03:21:56 -04:00
MASTER_SITES= ${MASTER_SITE_GNUSTEP:=core/}
MODULES= x11/gnustep \
converters/libiconv
LIB_DEPENDS= ffi::devel/libffi \
gmp.>=7::devel/gmp \
xslt.>=3::textproc/libxslt \
2009-06-03 12:31:57 -04:00
gnutls.>=13::security/gnutls \
dns_sd::net/avahi
CONFIGURE_STYLE=gnu
2009-06-03 12:31:57 -04:00
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/avahi-compat-libdns_sd" \
LDFLAGS="-pthread"
CONFIGURE_ARGS= --disable-procfs \
--disable-procfs-psinfo
2009-06-03 12:31:57 -04:00
CFLAGS+= -pthread
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>