2003-04-13 06:53:03 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# This file contains some variable definitions that are supposed to
|
|
|
|
# make your life easier when dealing with ports related to the GNUstep.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Options for user to customize in /etc/make.conf:
|
|
|
|
# ================================================
|
|
|
|
#
|
2006-01-18 19:50:18 +00:00
|
|
|
# WITH_GNUSTEP_XLIB=yes
|
|
|
|
# use xlib as backend (default)
|
|
|
|
#
|
2003-04-13 11:38:53 +00:00
|
|
|
# WITH_GNUSTEP_XDPS=yes
|
2006-01-18 19:50:18 +00:00
|
|
|
# use xdps as backend while build instead of xlib.
|
2003-04-13 06:53:03 +00:00
|
|
|
#
|
2003-04-13 11:38:53 +00:00
|
|
|
# WITH_GNUSTEP_LIBART=yes
|
2006-01-18 19:50:18 +00:00
|
|
|
# use libart as backend while build instead of xlib.
|
2003-04-13 06:53:03 +00:00
|
|
|
#
|
2005-10-25 07:45:22 +00:00
|
|
|
# WITH_GNUSTEP_CAIRO=yes
|
2006-01-18 19:50:18 +00:00
|
|
|
# use cairo as backend while build instead of xlib.
|
|
|
|
#
|
|
|
|
# GNUSTEP_WITH_BASE_GCC=yes
|
|
|
|
# use system compiler (does not work on all architectures).
|
|
|
|
#
|
|
|
|
# GNUSTEP_WITH_GCC32=yes
|
|
|
|
# use gcc 3.2.x with objective C shared libraries.
|
|
|
|
#
|
|
|
|
# GNUSTEP_WITH_GCC33=yes
|
|
|
|
# use gcc 3.3.x with objective C shared libraries.
|
|
|
|
#
|
|
|
|
# GNUSTEP_WITH_GCC34=yes
|
|
|
|
# use gcc 3.4.x with objective C shared libraries (default).
|
|
|
|
#
|
|
|
|
# GNUSTEP_WITH_GCC40=yes
|
|
|
|
# use gcc 4.0.x with objective C shared libraries.
|
|
|
|
#
|
|
|
|
# GNUSTEP_WITH_GCC41=yes
|
|
|
|
# use gcc 4.1.x with objective C shared libraries.
|
|
|
|
#
|
|
|
|
# GNUSTEP_WITH_GCC42=yes
|
|
|
|
# use gcc 4.2.x with objective C shared libraries.
|
|
|
|
#
|
2003-04-13 06:53:03 +00:00
|
|
|
#
|
|
|
|
# Options for a port before include this file:
|
|
|
|
# ============================================
|
|
|
|
#
|
|
|
|
# USE_GNUSTEP_BASE=yes
|
|
|
|
# your port depends on the gnustep-base port.
|
|
|
|
#
|
|
|
|
# USE_GNUSTEP_GUI=yes
|
|
|
|
# your port depends on the gnustep-gui port.
|
|
|
|
#
|
|
|
|
# USE_GNUSTEP_BACK=yes
|
2003-08-27 14:46:06 +00:00
|
|
|
# your port depends on the gnustep-back port.
|
2003-04-13 06:53:03 +00:00
|
|
|
#
|
|
|
|
# USE_GNUSTEP_CONFIGURE=yes
|
|
|
|
# call configure script with GNUstep.sh sourced in the current shell
|
|
|
|
#
|
|
|
|
# USE_GNUSTEP_BUILD=yes
|
|
|
|
# call build target with GNUstep.sh sourced in the current shell
|
|
|
|
#
|
|
|
|
# USE_GNUSTEP_INSTALL=yes
|
|
|
|
# call install target with GNUstep.sh sourced in the current shell
|
2005-01-09 10:12:07 +00:00
|
|
|
#
|
2003-04-13 06:53:03 +00:00
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
.if !defined(_POSTMKINCLUDED)
|
|
|
|
|
|
|
|
GNUstep_Include_MAINTAINER= dinoex@FreeBSD.org
|
|
|
|
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libcallback.a:${PORTSDIR}/devel/ffcall
|
2004-04-13 11:29:00 +00:00
|
|
|
.if !defined(GNUSTEP_WITHOUT_LIBOBJC)
|
2003-10-19 12:04:44 +00:00
|
|
|
.if !defined(GNUSTEP_WITH_BASE_GCC)
|
2004-04-13 11:29:00 +00:00
|
|
|
BUILD_DEPENDS+= ${TARGLIB}/libobjc.so:${PORTSDIR}/${GNUSTEP_GCC_PORT}
|
|
|
|
RUN_DEPENDS+= ${TARGLIB}/libobjc.so:${PORTSDIR}/${GNUSTEP_GCC_PORT}
|
|
|
|
.else
|
|
|
|
BUILD_DEPENDS+= ${COMBOLIBDIR}/libobjc.so:${PORTSDIR}/${GNUSTEP_OBJC_PORT}
|
|
|
|
RUN_DEPENDS+= ${COMBOLIBDIR}/libobjc.so:${PORTSDIR}/${GNUSTEP_OBJC_PORT}
|
|
|
|
.endif
|
2003-10-19 12:04:44 +00:00
|
|
|
.endif
|
2003-04-13 06:53:03 +00:00
|
|
|
|
|
|
|
GNUSTEP_MAKE_PORT?= devel/gnustep-make
|
|
|
|
GNUSTEP_OBJC_PORT?= lang/gnustep-objc
|
|
|
|
GNUSTEP_BASE_PORT?= lang/gnustep-base
|
|
|
|
GNUSTEP_GUI_PORT?= x11-toolkits/gnustep-gui
|
|
|
|
GNUSTEP_BACK_PORT?= x11-toolkits/gnustep-back
|
|
|
|
GNUSTEP_XDPS_PORT?= x11-toolkits/gnustep-xdps
|
|
|
|
GNUSTEP_ART_PORT?= x11-toolkits/gnustep-art
|
2005-10-25 07:45:22 +00:00
|
|
|
GNUSTEP_CAIRO_PORT?= x11-toolkits/gnustep-cairo
|
2003-04-13 06:53:03 +00:00
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
GNU_ARCH= ix86
|
|
|
|
.else
|
|
|
|
GNU_ARCH= ${MACHINE_ARCH}
|
|
|
|
.endif
|
|
|
|
|
2006-03-18 08:04:45 +00:00
|
|
|
GNUSTEP_PREFIX?= ${LOCALBASE}/GNUstep
|
|
|
|
.if defined(USE_GNUSTEP_PREFIX)
|
|
|
|
PREFIX= ${GNUSTEP_PREFIX}
|
|
|
|
NO_MTREE= yes
|
|
|
|
.endif
|
2006-01-19 18:57:05 +00:00
|
|
|
SYSTEMDIR= ${GNUSTEP_PREFIX}/System
|
2005-08-28 09:15:29 +00:00
|
|
|
SYSMAKEDIR= ${SYSTEMDIR}/Library/Makefiles
|
2003-10-19 11:14:19 +00:00
|
|
|
BUNDLEDIR= ${SYSTEMDIR}/Library/Bundles
|
2003-07-26 14:38:59 +00:00
|
|
|
SYSLIBDIR= ${SYSTEMDIR}/Library/Libraries
|
|
|
|
COMBOLIBDIR= ${SYSTEMDIR}/Library/Libraries
|
2006-01-19 18:57:05 +00:00
|
|
|
LOCALLIBDIR= ${GNUSTEP_PREFIX}/Local/Library/Libraries
|
2003-10-19 11:14:19 +00:00
|
|
|
.if defined(WITH_GNUSTEP_DEVEL)
|
2004-03-26 08:00:35 +00:00
|
|
|
PKGNAMESUFFIX?= -devel${PKGNAMESUFFIX2}
|
2003-06-01 03:12:41 +00:00
|
|
|
PLIST_SUB+= GNUSTEP_DEVEL=""
|
|
|
|
PLIST_SUB+= GNUSTEP_STABLE="@comment "
|
2004-06-16 08:17:22 +00:00
|
|
|
DEFAULT_LIBVERSION?= 0.0.1
|
2003-06-01 03:12:41 +00:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= GNUSTEP_DEVEL="@comment "
|
|
|
|
PLIST_SUB+= GNUSTEP_STABLE=""
|
2004-11-07 21:43:20 +00:00
|
|
|
DEFAULT_LIBVERSION?= 0.0.1
|
2003-06-01 03:12:41 +00:00
|
|
|
.endif
|
2004-06-16 08:17:22 +00:00
|
|
|
|
2004-11-14 08:06:16 +00:00
|
|
|
PLIST_SUB+= GNU_ARCH=${GNU_ARCH} VERSION=${PORTVERSION}
|
2004-06-16 08:17:22 +00:00
|
|
|
PLIST_SUB+= MAJORVERSION=${PORTVERSION:C/([0-9]).*/\1/1}
|
|
|
|
PLIST_SUB+= LIBVERSION=${DEFAULT_LIBVERSION}
|
|
|
|
PLIST_SUB+= MAJORLIBVERSION=${DEFAULT_LIBVERSION:C/([0-9]).*/\1/1}
|
|
|
|
|
2003-10-19 12:04:44 +00:00
|
|
|
.if !defined(GNUSTEP_WITH_BASE_GCC)
|
2004-10-12 04:32:33 +00:00
|
|
|
.if !defined(GNUSTEP_WITH_GCC32) && !defined(GNUSTEP_WITH_GCC33) && !defined(GNUSTEP_WITH_GCC34)
|
2006-01-18 19:50:18 +00:00
|
|
|
.if !defined(GNUSTEP_WITH_GCC40) && !defined(GNUSTEP_WITH_GCC41) && !defined(GNUSTEP_WITH_GCC42)
|
2006-04-04 19:22:26 +00:00
|
|
|
GNUSTEP_WITH_GCC41= yes
|
2006-01-18 19:50:18 +00:00
|
|
|
.endif
|
2004-10-12 04:32:33 +00:00
|
|
|
.endif
|
2006-03-28 19:50:51 +00:00
|
|
|
|
2004-04-15 20:51:06 +00:00
|
|
|
.if defined(GNUSTEP_WITH_GCC32)
|
2006-03-28 19:50:51 +00:00
|
|
|
GCCSUFFIX=32
|
|
|
|
GNUSTEP_GCC_PORT?= lang/gcc-objc
|
2004-10-12 04:32:33 +00:00
|
|
|
.endif
|
|
|
|
.if defined(GNUSTEP_WITH_GCC33)
|
2006-03-28 19:50:51 +00:00
|
|
|
GCCSUFFIX=33
|
2004-04-15 20:51:06 +00:00
|
|
|
.endif
|
2004-10-12 04:32:33 +00:00
|
|
|
.if defined(GNUSTEP_WITH_GCC34)
|
2006-03-28 19:50:51 +00:00
|
|
|
GCCSUFFIX=34
|
2004-10-12 04:32:33 +00:00
|
|
|
.endif
|
2006-01-18 19:50:18 +00:00
|
|
|
.if defined(GNUSTEP_WITH_GCC40)
|
2006-03-28 19:50:51 +00:00
|
|
|
GCCSUFFIX=40
|
2006-01-18 19:50:18 +00:00
|
|
|
.endif
|
|
|
|
.if defined(GNUSTEP_WITH_GCC41)
|
2006-03-28 19:50:51 +00:00
|
|
|
GCCSUFFIX=41
|
2006-01-18 19:50:18 +00:00
|
|
|
.endif
|
|
|
|
.if defined(GNUSTEP_WITH_GCC42)
|
2006-03-28 19:50:51 +00:00
|
|
|
GCCSUFFIX=42
|
2006-01-18 19:50:18 +00:00
|
|
|
.endif
|
2006-03-28 19:50:51 +00:00
|
|
|
CC= gcc${GCCSUFFIX}
|
|
|
|
CXX= g++${GCCSUFFIX}
|
|
|
|
GNUSTEP_GCC_PORT?= lang/gcc${GCCSUFFIX}
|
|
|
|
|
2003-10-19 12:04:44 +00:00
|
|
|
.endif
|
2003-04-13 06:53:03 +00:00
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
# using base
|
|
|
|
#
|
|
|
|
.if defined(USE_GNUSTEP_BASE)
|
|
|
|
BUILD_DEPENDS+= ${COMBOLIBDIR}/libgnustep-base.so:${PORTSDIR}/${GNUSTEP_BASE_PORT}
|
|
|
|
RUN_DEPENDS+= ${COMBOLIBDIR}/libgnustep-base.so:${PORTSDIR}/${GNUSTEP_BASE_PORT}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
# using gui
|
|
|
|
#
|
|
|
|
.if defined(USE_GNUSTEP_GUI)
|
|
|
|
BUILD_DEPENDS+= ${COMBOLIBDIR}/libgnustep-gui.so:${PORTSDIR}/${GNUSTEP_GUI_PORT}
|
|
|
|
RUN_DEPENDS+= ${COMBOLIBDIR}/libgnustep-gui.so:${PORTSDIR}/${GNUSTEP_GUI_PORT}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
# using any backend
|
|
|
|
#
|
|
|
|
.if defined(USE_GNUSTEP_BACK)
|
2005-07-27 17:13:46 +00:00
|
|
|
BACKSUFFIX?= -010
|
2003-04-13 11:38:53 +00:00
|
|
|
.if defined(WITH_GNUSTEP_XDPS)
|
2003-04-13 06:53:03 +00:00
|
|
|
GNUSTEP_WITH_XDPS=yes
|
2005-10-25 07:45:22 +00:00
|
|
|
.elif defined(WITH_GNUSTEP_LIBART)
|
2003-04-13 06:53:03 +00:00
|
|
|
USE_GNUSTEP_LIBART=yes
|
2005-10-25 07:45:22 +00:00
|
|
|
.elif defined(WITH_GNUSTEP_CAIRO)
|
|
|
|
USE_GNUSTEP_CAIRO=yes
|
2006-01-18 19:50:18 +00:00
|
|
|
.elif defined(WITH_GNUSTEP_XLIB)
|
|
|
|
USE_GNUSTEP_XLIB=yes
|
2003-04-13 06:53:03 +00:00
|
|
|
.else
|
2006-01-18 19:50:18 +00:00
|
|
|
# default:
|
2003-04-13 06:53:03 +00:00
|
|
|
USE_GNUSTEP_XLIB=yes
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
# Backend using xlib
|
|
|
|
#
|
|
|
|
.if defined(USE_GNUSTEP_XLIB)
|
2006-01-29 07:31:51 +00:00
|
|
|
BUILD_DEPENDS+= ${BUNDLEDIR}/${BACKXLIB}.bundle/${BACKXLIB}:${PORTSDIR}/${GNUSTEP_BACK_PORT}
|
|
|
|
RUN_DEPENDS+= ${BUNDLEDIR}/${BACKXLIB}.bundle/${BACKXLIB}:${PORTSDIR}/${GNUSTEP_BACK_PORT}
|
2003-04-13 06:53:03 +00:00
|
|
|
|
2006-01-29 07:31:51 +00:00
|
|
|
BACKXLIB= libgnustep-back${BACKSUFFIX}
|
2003-04-13 06:53:03 +00:00
|
|
|
MAKE_FLAGS+= GUI_BACKEND_LIB=back
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
# Backend using xdps
|
|
|
|
#
|
|
|
|
.if defined(USE_GNUSTEP_XDPS)
|
2006-01-29 07:31:51 +00:00
|
|
|
BUILD_DEPENDS+= ${BUNDLEDIR}/${BACKXDPS}.bundle/${BACKXDPS}:${PORTSDIR}/${GNUSTEP_XDPS_PORT}
|
|
|
|
RUN_DEPENDS+= ${BUNDLEDIR}/${BACKXDPS}.bundle/${BACKXDPS}:${PORTSDIR}/${GNUSTEP_XDPS_PORT}
|
2003-04-13 06:53:03 +00:00
|
|
|
|
2006-01-29 07:31:51 +00:00
|
|
|
BACKXDPS= libgnustep-xdps${BACKSUFFIX}
|
2003-04-13 06:53:03 +00:00
|
|
|
MAKE_FLAGS+= GUI_BACKEND_LIB=xdps
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
# Backend using libart
|
|
|
|
#
|
|
|
|
.if defined(USE_GNUSTEP_LIBART)
|
2006-01-29 07:31:51 +00:00
|
|
|
BUILD_DEPENDS+= ${BUNDLEDIR}/${BACKART}.bundle/${BACKART}:${PORTSDIR}/${GNUSTEP_ART_PORT}
|
|
|
|
RUN_DEPENDS+= ${BUNDLEDIR}/${BACKART}.bundle/${BACKART}:${PORTSDIR}/${GNUSTEP_ART_PORT}
|
2003-04-13 06:53:03 +00:00
|
|
|
|
2006-01-29 07:31:51 +00:00
|
|
|
BACKART= libgnustep-art${BACKSUFFIX}
|
2003-04-13 06:53:03 +00:00
|
|
|
MAKE_FLAGS+= GUI_BACKEND_LIB=art
|
|
|
|
.endif
|
|
|
|
|
2005-10-25 07:45:22 +00:00
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
# Backend using cairo
|
|
|
|
#
|
|
|
|
.if defined(USE_GNUSTEP_CAIRO)
|
2006-01-29 07:31:51 +00:00
|
|
|
BUILD_DEPENDS+= ${BUNDLEDIR}/${BACKCAIRO}.bundle/${BACKCAIRO}:${PORTSDIR}/${GNUSTEP_CAIRO_PORT}
|
|
|
|
RUN_DEPENDS+= ${BUNDLEDIR}/${BACKCAIRO}.bundle/${BACKCAIRO}:${PORTSDIR}/${GNUSTEP_CAIRO_PORT}
|
2005-10-25 07:45:22 +00:00
|
|
|
|
2006-01-29 07:31:51 +00:00
|
|
|
BACKCAIRO= libgnustep-cairo${BACKSUFFIX}
|
2005-10-25 07:45:22 +00:00
|
|
|
MAKE_FLAGS+= GUI_BACKEND_LIB=cairo
|
|
|
|
.endif
|
|
|
|
|
2003-04-13 06:53:03 +00:00
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
# source GNUstep.sh
|
|
|
|
#
|
|
|
|
.if defined(USE_GNUSTEP_CONFIGURE)
|
2005-11-19 06:02:20 +00:00
|
|
|
run-autotools::
|
2004-01-20 09:14:10 +00:00
|
|
|
@${DO_NADA}
|
|
|
|
|
2003-04-13 06:53:03 +00:00
|
|
|
do-configure:
|
|
|
|
@(cd ${CONFIGURE_WRKSRC}; . ${SYSMAKEDIR}/GNUstep.sh; \
|
|
|
|
if ! ${SETENV} CC="${CC}" CXX="${CXX}" \
|
|
|
|
CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
|
|
|
|
INSTALL="/usr/bin/install -c -o ${BINOWN} -g ${BINGRP}" \
|
|
|
|
INSTALL_DATA="${INSTALL} -c" \
|
|
|
|
INSTALL_PROGRAM="${INSTALL} -c" \
|
|
|
|
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
|
|
|
|
${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}; then \
|
|
|
|
${ECHO} "===> Script \"${CONFIGURE_SCRIPT}\" failed: here are the contents of \"${CONFIGURE_LOG}\""; \
|
|
|
|
${CAT} ${CONFIGURE_LOG}; \
|
|
|
|
${ECHO} "(end of \"${CONFIGURE_LOG}\")"; \
|
|
|
|
${FALSE}; \
|
|
|
|
fi)
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
# source GNUstep.sh
|
|
|
|
#
|
|
|
|
.if defined(USE_GNUSTEP_BUILD)
|
|
|
|
BUILD_DEPENDS+= ${SYSMAKEDIR}/GNUstep.sh:${PORTSDIR}/${GNUSTEP_MAKE_PORT}
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
@(cd ${WRKSRC}; . ${SYSMAKEDIR}/GNUstep.sh; \
|
|
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET})
|
|
|
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
# source GNUstep.sh
|
|
|
|
#
|
|
|
|
.if defined(USE_GNUSTEP_INSTALL)
|
|
|
|
RUN_DEPENDS+= ${SYSMAKEDIR}/GNUstep.sh:${PORTSDIR}/${GNUSTEP_MAKE_PORT}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@(cd ${WRKSRC}; . ${SYSMAKEDIR}/GNUstep.sh; \
|
|
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET})
|
2003-06-18 04:07:19 +00:00
|
|
|
.if defined(PARALLEL_PACKAGE_BUILD) || defined(BATCH) || defined(CLEAN_ROOT)
|
|
|
|
rm -rf /root/GNUstep
|
|
|
|
.endif
|
2003-04-13 06:53:03 +00:00
|
|
|
|
|
|
|
.endif
|
|
|
|
|
2004-04-13 11:29:00 +00:00
|
|
|
.if !defined(GNUSTEP_WITH_BASE_GCC)
|
|
|
|
TARGLIB!= (cd ${PORTSDIR}/${GNUSTEP_GCC_PORT} && make -V TARGLIB)
|
|
|
|
.endif
|
|
|
|
|
2003-04-13 06:53:03 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# eof
|