freebsd-ports/lang/ofc/Makefile

51 lines
1.2 KiB
Makefile
Raw Normal View History

# Created by: vanilla
# $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
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
2007-12-12 03:44:21 +01:00
USE_SDL= sdl
2010-12-04 08:34:27 +01:00
USE_AUTOTOOLS= libtool
USES= pathfix
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
2012-06-01 07:26:28 +02:00
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libpng15 ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
OPTIONS_DEFINE= GDBM GMP
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGDBM}
LIB_DEPENDS+= gdbm.4:${PORTSDIR}/databases/gdbm
.endif
.if ${PORT_OPTIONS:MGMP}
LIB_DEPENDS+= gmp.10:${PORTSDIR}/math/gmp
.endif
.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}
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}
.endif
.include <bsd.port.mk>