openbsd-ports/x11/gnustep/gnustep.port.mk
sebastia 52cac2ff77 update to gnustep-base 1.24.1
Getting rid of patch to make SYSTRACE happy, switch to use a GNUstep.conf
file in the x11/gnustep directory instead, more closely following what
the framework provides
API changes required a major library bump

OK landry@
2013-04-25 16:14:27 +00:00

53 lines
1.4 KiB
Makefile

# $OpenBSD: gnustep.port.mk,v 1.18 2013/04/25 16:14:27 sebastia Exp $
# until tested on others
ONLY_FOR_ARCHS = i386 amd64 macppc
SHARED_ONLY = Yes
CATEGORIES += x11/gnustep
USE_GMAKE ?= Yes
MAKE_FILE ?= GNUmakefile
BUILD_DEPENDS += x11/gnustep/make>=2.6.0
MODGNUSTEP_RUN_DEPENDS += x11/gnustep/make>=2.6.0
MAKE_FLAGS += CC="${CC}" CPP="${CC} -E" OPTFLAG="${CFLAGS}"
MAKE_ENV += GNUSTEP_MAKEFILES=`gnustep-config --variable=GNUSTEP_MAKEFILES`
MAKE_ENV += INSTALL_AS_USER=${BINOWN}
MAKE_ENV += INSTALL_AS_GROUP=${BINGRP}
MAKE_ENV += GNUSTEP_CONFIG_FILE=${PORTSDIR}/x11/gnustep/GNUstep.conf
MODGNUSTEP_NEEDS_BASE ?= Yes
MODGNUSTEP_NEEDS_GUI ?= Yes
MODGNUSTEP_NEEDS_BACK ?= Yes
.if ${MODGNUSTEP_NEEDS_GUI:L} == yes
MODGNUSTEP_WANTLIB += objc2 gnustep-base gnustep-gui
MODGNUSTEP_LIB_DEPENDS += x11/gnustep/gui
. if ${MODGNUSTEP_NEEDS_BACK:L} == yes
MODGNUSTEP_RUN_DEPENDS += x11/gnustep/back
. endif
.endif
.if ${MODGNUSTEP_NEEDS_BASE:L} == yes
MODGNUSTEP_LIB_DEPENDS += x11/gnustep/base
.endif
WANTLIB += ${MODGNUSTEP_WANTLIB}
LIB_DEPENDS += ${MODGNUSTEP_LIB_DEPENDS}
RUN_DEPENDS += ${MODGNUSTEP_RUN_DEPENDS}
MAKE_ENV += messages=yes
.ifdef DEBUG
CONFIGURE_ARGS += --enable-debug --disable-strip
MAKE_ENV += debug=yes strip=no
.else
CONFIGURE_ARGS += --disable-debug --enable-strip
MAKE_ENV += debug=no strip=yes
.endif
MASTER_SITE_GNUSTEP = ftp://ftp.gnustep.org/pub/gnustep/