2012-08-22 03:15:51 -04:00
|
|
|
# $OpenBSD: gnustep.port.mk,v 1.17 2012/08/22 07:15:51 sebastia Exp $
|
2007-07-21 13:30:10 -04:00
|
|
|
|
|
|
|
# until tested on others
|
2011-05-05 18:56:16 -04:00
|
|
|
ONLY_FOR_ARCHS = i386 amd64 macppc
|
2007-05-28 22:59:11 -04:00
|
|
|
|
2010-11-06 06:03:31 -04:00
|
|
|
SHARED_ONLY = Yes
|
2007-05-28 22:59:11 -04:00
|
|
|
|
2010-11-06 06:03:31 -04:00
|
|
|
CATEGORIES += x11/gnustep
|
2007-07-21 13:30:10 -04:00
|
|
|
|
2010-11-06 06:03:31 -04:00
|
|
|
USE_GMAKE ?= Yes
|
|
|
|
MAKE_FILE ?= GNUmakefile
|
2007-05-28 22:59:11 -04:00
|
|
|
|
2011-04-18 07:57:51 -04:00
|
|
|
BUILD_DEPENDS += x11/gnustep/make>=2.6.0
|
|
|
|
MODGNUSTEP_RUN_DEPENDS += x11/gnustep/make>=2.6.0
|
2007-05-28 22:59:11 -04:00
|
|
|
|
2010-11-06 06:03:31 -04:00
|
|
|
MAKE_FLAGS += CC="${CC}" CPP="${CC} -E" OPTFLAG="${CFLAGS}"
|
2007-05-28 22:59:11 -04:00
|
|
|
|
2010-11-06 06:03:31 -04:00
|
|
|
MAKE_ENV += GNUSTEP_MAKEFILES=`gnustep-config --variable=GNUSTEP_MAKEFILES`
|
|
|
|
MAKE_ENV += INSTALL_AS_USER=${BINOWN}
|
|
|
|
MAKE_ENV += INSTALL_AS_GROUP=${BINGRP}
|
|
|
|
MAKE_ENV += GS_DEFAULTS_LOCKDIR=${WRKDIR}
|
2007-05-28 22:59:11 -04:00
|
|
|
|
2010-11-06 06:03:31 -04:00
|
|
|
MODGNUSTEP_NEEDS_BASE ?= Yes
|
|
|
|
MODGNUSTEP_NEEDS_GUI ?= Yes
|
|
|
|
MODGNUSTEP_NEEDS_BACK ?= Yes
|
|
|
|
|
|
|
|
.if ${MODGNUSTEP_NEEDS_GUI:L} == yes
|
2012-08-22 03:15:51 -04:00
|
|
|
MODGNUSTEP_WANTLIB += objc2 gnustep-base gnustep-gui
|
2010-11-22 03:36:47 -05:00
|
|
|
MODGNUSTEP_LIB_DEPENDS += x11/gnustep/gui
|
2010-11-06 06:03:31 -04:00
|
|
|
. if ${MODGNUSTEP_NEEDS_BACK:L} == yes
|
2010-11-22 03:36:47 -05:00
|
|
|
MODGNUSTEP_RUN_DEPENDS += x11/gnustep/back
|
2010-11-06 06:03:31 -04:00
|
|
|
. endif
|
2010-10-26 08:39:10 -04:00
|
|
|
.endif
|
2010-11-06 06:03:31 -04:00
|
|
|
.if ${MODGNUSTEP_NEEDS_BASE:L} == yes
|
2010-11-22 03:36:47 -05:00
|
|
|
MODGNUSTEP_LIB_DEPENDS += x11/gnustep/base
|
2010-10-26 08:39:10 -04:00
|
|
|
.endif
|
|
|
|
|
2010-11-06 06:03:31 -04:00
|
|
|
WANTLIB += ${MODGNUSTEP_WANTLIB}
|
|
|
|
LIB_DEPENDS += ${MODGNUSTEP_LIB_DEPENDS}
|
|
|
|
RUN_DEPENDS += ${MODGNUSTEP_RUN_DEPENDS}
|
|
|
|
|
|
|
|
MAKE_ENV += messages=yes
|
2008-11-14 05:34:15 -05:00
|
|
|
|
|
|
|
.ifdef DEBUG
|
2011-07-19 02:19:49 -04:00
|
|
|
CONFIGURE_ARGS += --enable-debug --disable-strip
|
2010-11-06 06:03:31 -04:00
|
|
|
MAKE_ENV += debug=yes strip=no
|
2008-11-14 05:34:15 -05:00
|
|
|
.else
|
2011-07-19 02:19:49 -04:00
|
|
|
CONFIGURE_ARGS += --disable-debug --enable-strip
|
|
|
|
MAKE_ENV += debug=no strip=yes
|
2008-11-14 05:34:15 -05:00
|
|
|
.endif
|
2008-10-03 03:21:56 -04:00
|
|
|
|
2010-11-06 06:03:31 -04:00
|
|
|
MASTER_SITE_GNUSTEP = ftp://ftp.gnustep.org/pub/gnustep/
|