# New ports collection makefile for: gnustep-back # Date created: 27.October 2002 # Whom: dirk.meyer@dinoex.sub.org # # $FreeBSD$ # PORTNAME= gnustep-back PORTVERSION= 0.8.3 CATEGORIES= x11-toolkits MASTER_SITES= ${MASTER_SITE_GNUSTEP} \ ftp://ftp.gnustep.org/pub/gnustep/%SUBDIR%/ MASTER_SITE_SUBDIR= core MAINTAINER= dinoex@FreeBSD.org BUILD_DEPENDS= ${COMBOLIBDIR}/libgnustep-gui.so:${PORTSDIR}/x11-toolkits/gnustep-gui BUILD_DEPENDS+= ${LOCALBASE}/lib/libcallback.a:${PORTSDIR}/devel/ffcall RUN_DEPENDS= ${COMBOLIBDIR}/libgnustep-gui.so:${PORTSDIR}/x11-toolkits/gnustep-gui LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ tiff.4:${PORTSDIR}/graphics/tiff USE_XLIB= yes BREAKS_IF_PEDANTIC= yes CONFIGURE_ARGS+= --with-tiff-library=${LOCALBASE}/lib CONFIGURE_ARGS+= --with-tiff-include=${LOCALBASE}/include CONFIGURE_ARGS+= --with-jpeg-library=${LOCALBASE}/lib CONFIGURE_ARGS+= --with-jpeg-include=${LOCALBASE}/include CONFIGURE_ARGS+= --enable-xlib .include .if ${OSVERSION} < 300000 BROKEN= "Sorry, this port does not work on FreeBSD-2.2.x" .endif PREFIX= ${LOCALBASE}/GNUstep GNU_CONFIGURE= yes CONFIGURE_TARGET= USE_GMAKE= yes MAKEFILE= MAKE_FLAGS= OPTFLAG="${CFLAGS}" NO_MTREE= yes .if ${MACHINE_ARCH} == "i386" GNU_ARCH= ix86 .else GNU_ARCH= ${MACHINE_ARCH} .endif PLIST_SUB+= GNU_ARCH=${GNU_ARCH} OPSYS=${OPSYS:L} VERSION=${PORTVERSION} \ MAJORVERSION=${PORTVERSION:C/([0-9]).*/\1/1} COMBOLIBDIR= ${PREFIX}/System/Libraries/${GNU_ARCH}/${OPSYS:L}/gnu-gnu-gnu post-extract: .for file in config.guess config.sub install-sh @${CP} ${PREFIX}/System/Makefiles/${file} ${WRKSRC} .endfor do-configure: @(cd ${WRKSRC}; . ${PREFIX}/System/Makefiles/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) do-build: @(cd ${WRKSRC}; . ${PREFIX}/System/Makefiles/GNUstep.sh; \ ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET}) do-install: @(cd ${WRKSRC}; . ${PREFIX}/System/Makefiles/GNUstep.sh; \ ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET}) .include