2013-05-02 16:44:50 +02:00
|
|
|
# Created by: vanilla
|
2006-06-24 19:54:22 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ofc
|
2008-09-23 05:07:30 +02:00
|
|
|
PORTVERSION= 0.8.1
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 6
|
2006-06-24 19:54:22 +02:00
|
|
|
CATEGORIES= lang
|
|
|
|
MASTER_SITES= http://ofc.dvoudheusden.net/download/
|
|
|
|
|
|
|
|
MAINTAINER= vanilla@FreeBSD.org
|
|
|
|
COMMENT= The Objective-C Foundation Classes library
|
|
|
|
|
2007-12-12 03:44:21 +01:00
|
|
|
LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2 \
|
2012-06-01 07:26:28 +02:00
|
|
|
png15:${PORTSDIR}/graphics/png \
|
2010-02-05 12:46:55 +01:00
|
|
|
jpeg.11:${PORTSDIR}/graphics/jpeg \
|
2007-12-12 03:44:21 +01:00
|
|
|
freetype.9:${PORTSDIR}/print/freetype2
|
2006-06-24 19:54:22 +02:00
|
|
|
|
2007-12-12 03:44:21 +01:00
|
|
|
USE_SDL= sdl
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2013-03-19 14:04:30 +01:00
|
|
|
USES= pathfix
|
2006-06-24 19:54:22 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2007-10-02 02:56:45 +02:00
|
|
|
USE_LDCONFIG= yes
|
2012-06-01 07:26:28 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libpng15 ${PTHREAD_CFLAGS}
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
2006-06-24 19:54:22 +02:00
|
|
|
|
2013-05-02 16:44:50 +02:00
|
|
|
OPTIONS_DEFINE= GDBM GMP
|
2006-06-24 19:54:22 +02:00
|
|
|
|
2013-05-02 16:44:50 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MGDBM}
|
2011-09-12 15:46:58 +02:00
|
|
|
LIB_DEPENDS+= gdbm.4:${PORTSDIR}/databases/gdbm
|
2006-06-24 19:54:22 +02:00
|
|
|
.endif
|
|
|
|
|
2013-05-02 16:44:50 +02:00
|
|
|
.if ${PORT_OPTIONS:MGMP}
|
2010-04-19 12:43:42 +02:00
|
|
|
LIB_DEPENDS+= gmp.10:${PORTSDIR}/math/gmp
|
2006-06-24 19:54:22 +02:00
|
|
|
.endif
|
|
|
|
|
2011-05-18 00:22:49 +02:00
|
|
|
.if ${OSVERSION} >= 900000
|
2012-06-01 07:26:28 +02:00
|
|
|
# needs libobjc
|
|
|
|
GCCSUFFIX=42
|
|
|
|
CC= gcc${GCCSUFFIX}
|
|
|
|
CXX= g++${GCCSUFFIX}
|
|
|
|
OFC_GCC_PORT?= lang/gcc${GCCSUFFIX}
|
2013-05-02 16:44:50 +02:00
|
|
|
TARGLIB!= ${MAKE} -C ${PORTSDIR}/${OFC_GCC_PORT} -V TARGLIB
|
2012-06-01 07:26:28 +02:00
|
|
|
LDFLAGS+= -L${TARGLIB}
|
|
|
|
BUILD_DEPENDS+= ${TARGLIB}/libobjc.so:${PORTSDIR}/${OFC_GCC_PORT}
|
|
|
|
RUN_DEPENDS+= ${TARGLIB}/libobjc.so:${PORTSDIR}/${OFC_GCC_PORT}
|
2011-05-18 00:22:49 +02:00
|
|
|
.endif
|
|
|
|
|
2013-05-02 16:44:50 +02:00
|
|
|
.include <bsd.port.mk>
|