2003-04-13 08:53:03 +02: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:
|
|
|
|
# ================================================
|
|
|
|
#
|
2003-04-13 13:38:53 +02:00
|
|
|
# WITH_GNUSTEP_XDPS=yes
|
2003-04-13 08:53:03 +02:00
|
|
|
# use xdps as backend instead of xlib.
|
|
|
|
#
|
2003-04-13 13:38:53 +02:00
|
|
|
# WITH_GNUSTEP_LIBART=yes
|
2003-04-13 08:53:03 +02:00
|
|
|
# use libart as backend instead of xlib.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# 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 16:46:06 +02:00
|
|
|
# your port depends on the gnustep-back port.
|
2003-04-13 08:53:03 +02: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
|
|
|
|
#
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
.if !defined(_POSTMKINCLUDED)
|
|
|
|
|
|
|
|
GNUstep_Include_MAINTAINER= dinoex@FreeBSD.org
|
|
|
|
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libcallback.a:${PORTSDIR}/devel/ffcall
|
2003-10-19 14:04:44 +02:00
|
|
|
.if !defined(GNUSTEP_WITH_BASE_GCC)
|
2003-04-13 08:53:03 +02:00
|
|
|
LIB_DEPENDS+= objc:${PORTSDIR}/${GNUSTEP_OBJC_PORT}
|
2003-10-19 14:04:44 +02:00
|
|
|
.endif
|
2003-04-13 08:53:03 +02: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
|
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
GNU_ARCH= ix86
|
|
|
|
.else
|
|
|
|
GNU_ARCH= ${MACHINE_ARCH}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
PLIST_SUB+= GNU_ARCH=${GNU_ARCH} OPSYS=${OPSYS:L} VERSION=${PORTVERSION}
|
|
|
|
PLIST_SUB+= MAJORVERSION=${PORTVERSION:C/([0-9]).*/\1/1}
|
|
|
|
|
|
|
|
SYSTEMDIR= ${PREFIX}/System
|
|
|
|
SYSMAKEDIR= ${SYSTEMDIR}/Makefiles
|
2003-10-19 13:14:19 +02:00
|
|
|
BUNDLEDIR= ${SYSTEMDIR}/Library/Bundles
|
2003-07-26 16:38:59 +02:00
|
|
|
SYSLIBDIR= ${SYSTEMDIR}/Library/Libraries
|
|
|
|
COMBOLIBDIR= ${SYSTEMDIR}/Library/Libraries
|
|
|
|
LOCALLIBDIR= ${PREFIX}/Local/Library/Libraries
|
2003-06-01 05:12:41 +02:00
|
|
|
PLIST_SUB+= SYSTEMLIBRARY="System/Library"
|
|
|
|
PLIST_SUB+= LOCALLIBRARY="Local/Library"
|
2003-07-26 16:38:59 +02:00
|
|
|
PLIST_SUB+= NOFLAT=""
|
2003-10-19 13:14:19 +02:00
|
|
|
.if defined(WITH_GNUSTEP_DEVEL)
|
|
|
|
PKGNAMESUFFIX?= -devel
|
2003-06-01 05:12:41 +02:00
|
|
|
PLIST_SUB+= GNUSTEP_DEVEL=""
|
|
|
|
PLIST_SUB+= GNUSTEP_STABLE="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= GNUSTEP_DEVEL="@comment "
|
|
|
|
PLIST_SUB+= GNUSTEP_STABLE=""
|
|
|
|
.endif
|
2003-10-19 14:04:44 +02:00
|
|
|
.if !defined(GNUSTEP_WITH_BASE_GCC)
|
2003-04-13 08:53:03 +02:00
|
|
|
CC= gcc32
|
|
|
|
CXX= g++32
|
2003-10-19 14:04:44 +02:00
|
|
|
.endif
|
2003-04-13 08:53:03 +02: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)
|
2003-04-13 13:38:53 +02:00
|
|
|
.if defined(WITH_GNUSTEP_XDPS)
|
2003-04-13 08:53:03 +02:00
|
|
|
GNUSTEP_WITH_XDPS=yes
|
|
|
|
.else
|
2003-04-13 13:38:53 +02:00
|
|
|
.if defined(WITH_GNUSTEP_LIBART)
|
2003-04-13 08:53:03 +02:00
|
|
|
USE_GNUSTEP_LIBART=yes
|
|
|
|
.else
|
|
|
|
USE_GNUSTEP_XLIB=yes
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
# Backend using xlib
|
|
|
|
#
|
|
|
|
.if defined(USE_GNUSTEP_XLIB)
|
|
|
|
BUILD_DEPENDS+= ${BACKBUNDLEDIR}/libgnustep-back:${PORTSDIR}/${GNUSTEP_BACK_PORT}
|
|
|
|
RUN_DEPENDS+= ${BACKBUNDLEDIR}/libgnustep-back:${PORTSDIR}/${GNUSTEP_BACK_PORT}
|
|
|
|
|
2003-07-26 16:38:59 +02:00
|
|
|
BACKBUNDLEDIR= ${BUNDLEDIR}/libgnustep-back.bundle
|
2003-04-13 08:53:03 +02:00
|
|
|
MAKE_FLAGS+= GUI_BACKEND_LIB=back
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
# Backend using xdps
|
|
|
|
#
|
|
|
|
.if defined(USE_GNUSTEP_XDPS)
|
|
|
|
BUILD_DEPENDS+= ${BACKBUNDLEDIR}/libgnustep-xdps:${PORTSDIR}/${GNUSTEP_XDPS_PORT}
|
|
|
|
RUN_DEPENDS+= ${BACKBUNDLEDIR}/libgnustep-xdps:${PORTSDIR}/${GNUSTEP_XDPS_PORT}
|
|
|
|
|
2003-07-26 16:38:59 +02:00
|
|
|
BACKBUNDLEDIR= ${BUNDLEDIR}/libgnustep-xdps.bundle
|
2003-04-13 08:53:03 +02:00
|
|
|
MAKE_FLAGS+= GUI_BACKEND_LIB=xdps
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
# Backend using libart
|
|
|
|
#
|
|
|
|
.if defined(USE_GNUSTEP_LIBART)
|
|
|
|
BUILD_DEPENDS+= ${BACKBUNDLEDIR}/libgnustep-art:${PORTSDIR}/${GNUSTEP_ART_PORT}
|
|
|
|
RUN_DEPENDS+= ${BACKBUNDLEDIR}/libgnustep-art:${PORTSDIR}/${GNUSTEP_ART_PORT}
|
|
|
|
|
2003-07-26 16:38:59 +02:00
|
|
|
BACKBUNDLEDIR= ${BUNDLEDIR}/libgnustep-art.bundle
|
2003-04-13 08:53:03 +02:00
|
|
|
MAKE_FLAGS+= GUI_BACKEND_LIB=art
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
# source GNUstep.sh
|
|
|
|
#
|
|
|
|
.if defined(USE_GNUSTEP_CONFIGURE)
|
2004-01-20 10:14:10 +01:00
|
|
|
run-autotools:
|
|
|
|
@${DO_NADA}
|
|
|
|
|
2003-04-13 08:53:03 +02: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 06:07:19 +02:00
|
|
|
.if defined(PARALLEL_PACKAGE_BUILD) || defined(BATCH) || defined(CLEAN_ROOT)
|
|
|
|
rm -rf /root/GNUstep
|
|
|
|
.endif
|
2003-04-13 08:53:03 +02:00
|
|
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# eof
|