freebsd-ports/x11-toolkits/gnustep-gui/Makefile

110 lines
3.1 KiB
Makefile
Raw Normal View History

2001-06-26 14:02:37 +02:00
# New ports collection makefile for: gnustep-gui
# Date created: 19 April 2001
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
1999-08-25 07:57:29 +02:00
# $FreeBSD$
#
2001-06-26 14:02:37 +02:00
PORTNAME= gnustep-gui
.if defined(WITH_GNUSTEP_DEVEL)
2011-04-16 12:17:39 +02:00
PORTVERSION= 0.20.0
.else
2009-11-28 22:49:45 +01:00
PORTVERSION= 0.17.1
2012-06-01 07:26:28 +02:00
PORTREVISION= 3
.endif
CATEGORIES= x11-toolkits gnustep
2004-01-31 13:16:18 +01:00
MASTER_SITES= ${MASTER_SITE_GNUSTEP}
MASTER_SITE_SUBDIR= core
MAINTAINER= dinoex@FreeBSD.org
2003-02-20 19:26:42 +01:00
COMMENT= GNUstep GUI library
2002-10-20 18:39:06 +02:00
LIB_DEPENDS+= tiff.4:${PORTSDIR}/graphics/tiff
2010-02-05 12:46:55 +01:00
LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg
2012-06-01 07:26:28 +02:00
LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png
2009-11-28 22:49:45 +01:00
LIB_DEPENDS+= gif.5:${PORTSDIR}/graphics/giflib
.if defined(WITH_GNUSTEP_DEVEL)
LIB_DEPENDS+= sndfile:${PORTSDIR}/audio/libsndfile
LIB_DEPENDS+= ao.4:${PORTSDIR}/audio/libao
BUILD_DEPENDS+= ${LOCALBASE}/lib/libflite.a:${PORTSDIR}/audio/flite
.else
LIB_DEPENDS+= audiofile:${PORTSDIR}/audio/libaudiofile
.endif
2010-06-05 09:54:45 +02:00
LICENSE_COMB= multi
LICENSE= GPLv3 LGPL3
2010-06-04 15:14:56 +02:00
GNU_CONFIGURE= yes
2002-10-20 18:39:06 +02:00
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+= --with-x
2008-03-30 11:36:46 +02:00
CONFIGURE_ARGS+= --with-x-include=${LOCALBASE}/include
CONFIGURE_ARGS+= --with-x-include=${LOCALBASE}/lib
USE_GNUSTEP= yes
USE_GNUSTEP_CONFIGURE= yes
USE_GNUSTEP_BUILD= yes
USE_GNUSTEP_INSTALL= yes
USE_GNUSTEP_BASE= yes
USE_GNUSTEP_LDCONFIG= ${GNUSTEP_SYSTEM_LIBRARIES}
2008-02-28 10:07:37 +01:00
USE_XORG= x11 xt
2006-12-10 15:08:40 +01:00
EXTRA_PATCHES+= ${FILESDIR}/GNUmakefile.patch
MAKE_FLAGS+= OPTFLAG="${CFLAGS}"
2008-12-24 08:48:40 +01:00
MAKE_ENV+= GNUSTEP_INSTALLATION_DOMAIN=SYSTEM
BREAKS_IF_PEDANTIC= yes
2004-11-07 22:47:05 +01:00
PLIST_SUB+= BASEVERSION=${PORTVERSION:C/[.][0-9]*$//1}
2012-06-01 07:26:28 +02:00
ADDITIONAL_INCLUDE_DIRS+= -I${LOCALBASE}/include/libpng15
.if defined(WITH_GNUSTEP_DEVEL)
2010-06-11 10:58:13 +02:00
EXTRA_PATCHES+= ${FILESDIR}/AudioOutputSink.m.patch
.endif
.if defined(WITHOUT_GNUSTEP_FAKEMAIN)
.if !exists(/proc/curproc)
IGNORE= requires procfs mounted to build or run, for details see procfs(5)
2006-05-13 10:27:06 +02:00
.endif
.endif
.if !defined(WITHOUT_PORTAUDIO2) && !defined(WITHOUT_PORTAUDIO) && !defined(WITH_GNUSTEP_DEVEL)
2007-02-25 14:24:12 +01:00
LIB_DEPENDS+= portaudio:${PORTSDIR}/audio/portaudio2
CPPFLAGS+= -I${LOCALBASE}/include/portaudio2 ${PTHREAD_CFLAGS}
CFLAGS+= ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib/portaudio2 ${PTHREAD_LIBS}
2007-05-25 07:55:36 +02:00
ADDITIONAL_INCLUDE_DIRS+= -I${LOCALBASE}/include/portaudio2
ADDITIONAL_LDFLAGS+= -L${LOCALBASE}/lib/portaudio2
PLIST_SUB+= WITH_PORTAUDIO=""
.else
PLIST_SUB+= WITH_PORTAUDIO="@comment "
2007-02-25 14:24:12 +01:00
.endif
.if !defined(WITHOUT_CUPS)
2009-05-16 21:22:18 +02:00
LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-client
PLIST_SUB+= WITH_CUPS=""
.else
PLIST_SUB+= WITH_CUPS="@comment "
.endif
ASPELL_PORT?= textproc/aspell
.if !defined(WITHOUT_ASPELL)
LIB_DEPENDS+= aspell:${PORTSDIR}/${ASPELL_PORT}
PLIST_SUB+= WITH_ASPELL=""
.else
PLIST_SUB+= WITH_ASPELL="@comment "
.endif
2012-06-01 07:26:28 +02:00
post-patch:
${REINPLACE_CMD} -e "s|libpng/png.h|png.h|" ${WRKSRC}/configure
pre-configure:
.for file in config.guess config.sub install-sh
2010-05-30 14:28:39 +02:00
@${CP} ${GNUSTEP_PREFIX}/System/Library/Makefiles/${file} ${WRKSRC}
.endfor
2003-10-19 13:14:50 +02:00
.if !defined(NOPORTDOCS)
${REINPLACE_CMD} -e "s|doc=no|doc=yes|" ${WRKSRC}/GNUmakefile
.endif
2008-06-01 21:22:24 +02:00
.include <bsd.port.mk>