2006-04-04 18:02:30 +02:00
|
|
|
# New ports collection makefile for: XaraLX
|
|
|
|
# Date created: 22 Mar 2006
|
|
|
|
# Whom: Vasil Dimov <vd@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= XaraLX
|
2006-05-26 11:15:33 +02:00
|
|
|
PORTVERSION?= 0.5r1175
|
2006-04-04 18:02:30 +02:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= http://downloads.xara.com/opensource/
|
2006-05-26 11:15:33 +02:00
|
|
|
DISTFILES?= ${PORTNAME}Src-${PORTVERSION}.tar.bz2
|
2006-04-04 18:02:30 +02:00
|
|
|
|
|
|
|
MAINTAINER= vd@FreeBSD.org
|
2006-04-20 15:38:02 +02:00
|
|
|
COMMENT?= Top-tier vector/general purpose graphics program (recommended version)
|
2006-04-04 18:02:30 +02:00
|
|
|
|
2006-05-26 11:15:33 +02:00
|
|
|
USE_BZIP2= yes
|
|
|
|
|
2006-04-04 18:02:30 +02:00
|
|
|
#WXDEP= ${X11BASE}/libwx_baseu-2.6.so.0.3.1
|
|
|
|
WXDEP= wxgtk2-unicode>=2.6.3
|
2006-05-28 07:25:50 +02:00
|
|
|
BUILD_DEPENDS+= pkg-config:${PORTSDIR}/devel/pkg-config \
|
2006-04-04 18:02:30 +02:00
|
|
|
${WXDEP}:${PORTSDIR}/x11-toolkits/wxgtk26-unicode \
|
2006-05-26 11:15:33 +02:00
|
|
|
md5sum:${PORTSDIR}/archivers/dpkg \
|
|
|
|
xml2-config:${PORTSDIR}/textproc/libxml2 \
|
|
|
|
zip:${PORTSDIR}/archivers/zip
|
|
|
|
RUN_DEPENDS+= ${WXDEP}:${PORTSDIR}/x11-toolkits/wxgtk26-unicode
|
|
|
|
LIB_DEPENDS+= dlmalloc.2:${PORTSDIR}/devel/libdlmalloc \
|
|
|
|
xml2.5:${PORTSDIR}/textproc/libxml2
|
2006-04-04 18:02:30 +02:00
|
|
|
|
|
|
|
USE_AUTOTOOLS= autoconf:259:env aclocal:19:env automake:19:env
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2006-05-26 11:15:33 +02:00
|
|
|
CONFIGURE_ARGS+= --with-wx-config=wxgtk2u-2.6-config \
|
2006-04-20 15:38:02 +02:00
|
|
|
--program-suffix=${PKGNAMESUFFIX}
|
2006-04-04 18:02:30 +02:00
|
|
|
PKGCONFIGS=atk fontconfig gdk-2.0 pango
|
2006-05-16 15:46:21 +02:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS_APPEND="`pkg-config --cflags ${PKGCONFIGS}` \
|
2006-04-04 18:02:30 +02:00
|
|
|
-I${LOCALBASE}/include/atk-1.0/atk \
|
|
|
|
-I${X11BASE}/include/gtk-2.0/gtk"
|
2006-05-26 11:15:33 +02:00
|
|
|
# we're using dlmalloc because the stock libc does not have malloc_usable_size()
|
|
|
|
CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib -ldlmalloc"
|
2006-04-04 18:02:30 +02:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2006-05-26 11:15:33 +02:00
|
|
|
# add wxOil with -I- appended to it before any other -I stuff, see below
|
|
|
|
MAKE_ENV+= INCLUDES="-I../wxOil -I- -I${LOCALBASE}/include/dlmalloc"
|
|
|
|
|
2006-04-04 18:02:30 +02:00
|
|
|
USE_GCC= 3.4+
|
|
|
|
|
2006-04-19 08:15:37 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-04-28 08:25:38 +02:00
|
|
|
.if ${ARCH} != "i386" && ${ARCH} != "amd64" && ${ARCH} != "powerpc"
|
|
|
|
BROKEN= does not configure due to the lack of CDraw libraries for ${ARCH}
|
2006-04-19 08:15:37 +02:00
|
|
|
.endif
|
|
|
|
|
2006-04-20 15:38:02 +02:00
|
|
|
PROG= XaraLX${PKGNAMESUFFIX}
|
2006-04-04 18:02:30 +02:00
|
|
|
|
|
|
|
PLIST_FILES= bin/${PROG}
|
|
|
|
|
2006-05-26 11:15:33 +02:00
|
|
|
# we need to strip wxOil from the include path because it contains file
|
|
|
|
# named strings.h which when included by /usr/include/string.h results
|
|
|
|
# in a complete mess
|
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -E -e 's|-I[^[:space:]]*/wxOil[[:space:]]||g' \
|
|
|
|
${WRKSRC}/Makefile.am
|
|
|
|
|
2006-04-04 18:02:30 +02:00
|
|
|
pre-configure:
|
|
|
|
cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${AUTORECONF} -f -s -i
|
|
|
|
|
2006-04-19 08:15:37 +02:00
|
|
|
.include <bsd.port.post.mk>
|