openbsd-ports/x11/gnustep/gnustep.port.mk

53 lines
1.3 KiB
Makefile
Raw Normal View History

# $OpenBSD: gnustep.port.mk,v 1.17 2012/08/22 07:15:51 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 += GS_DEFAULTS_LOCKDIR=${WRKDIR}
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
2010-11-22 03:36:47 -05:00
MODGNUSTEP_LIB_DEPENDS += x11/gnustep/gui
. if ${MODGNUSTEP_NEEDS_BACK:L} == yes
2010-11-22 03:36:47 -05:00
MODGNUSTEP_RUN_DEPENDS += x11/gnustep/back
. endif
.endif
.if ${MODGNUSTEP_NEEDS_BASE:L} == yes
2010-11-22 03:36:47 -05:00
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
2008-10-03 03:21:56 -04:00
MASTER_SITE_GNUSTEP = ftp://ftp.gnustep.org/pub/gnustep/