2006-04-04 16:02:30 +00:00
|
|
|
# New ports collection makefile for: XaraLX
|
|
|
|
# Date created: 22 Mar 2006
|
|
|
|
# Whom: Vasil Dimov <vd@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= XaraLX
|
2006-05-26 09:15:33 +00:00
|
|
|
PORTVERSION?= 0.5r1175
|
2006-05-31 11:14:29 +00:00
|
|
|
PORTREVISION?= 1
|
2006-04-04 16:02:30 +00:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= http://downloads.xara.com/opensource/
|
2006-05-26 09:15:33 +00:00
|
|
|
DISTFILES?= ${PORTNAME}Src-${PORTVERSION}.tar.bz2
|
2006-04-04 16:02:30 +00:00
|
|
|
|
|
|
|
MAINTAINER= vd@FreeBSD.org
|
2006-04-20 13:38:02 +00:00
|
|
|
COMMENT?= Top-tier vector/general purpose graphics program (recommended version)
|
2006-04-04 16:02:30 +00:00
|
|
|
|
2006-05-26 09:15:33 +00:00
|
|
|
USE_BZIP2= yes
|
2006-05-31 11:14:29 +00:00
|
|
|
USE_X_PREFIX= yes
|
2006-05-26 09:15:33 +00:00
|
|
|
|
2006-04-04 16:02:30 +00:00
|
|
|
#WXDEP= ${X11BASE}/libwx_baseu-2.6.so.0.3.1
|
|
|
|
WXDEP= wxgtk2-unicode>=2.6.3
|
2006-05-28 05:25:50 +00:00
|
|
|
BUILD_DEPENDS+= pkg-config:${PORTSDIR}/devel/pkg-config \
|
2006-04-04 16:02:30 +00:00
|
|
|
${WXDEP}:${PORTSDIR}/x11-toolkits/wxgtk26-unicode \
|
2006-05-26 09:15:33 +00: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 16:02:30 +00:00
|
|
|
|
2006-06-05 15:29:49 +00:00
|
|
|
USE_AUTOTOOLS= autoconf:259:env aclocal:19:env automake:19:env libtool:15:env
|
2006-04-04 16:02:30 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2006-05-26 09:15:33 +00:00
|
|
|
CONFIGURE_ARGS+= --with-wx-config=wxgtk2u-2.6-config \
|
2006-04-20 13:38:02 +00:00
|
|
|
--program-suffix=${PKGNAMESUFFIX}
|
2006-06-05 15:29:49 +00:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS_APPEND="-I${LOCALBASE}/include/atk-1.0/atk \
|
2006-04-04 16:02:30 +00:00
|
|
|
-I${X11BASE}/include/gtk-2.0/gtk"
|
2006-05-26 09:15:33 +00: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 16:02:30 +00:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2006-05-26 09:15:33 +00: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 16:02:30 +00:00
|
|
|
USE_GCC= 3.4+
|
|
|
|
|
2006-05-31 11:14:29 +00:00
|
|
|
MAN1= XaraLX${PKGNAMESUFFIX}.1
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
DOCS_IN_WRKSRC= AUTHORS GPL LICENSE README
|
|
|
|
DOCS_IN_DOC= en/xaralx.htm gifutil.txt mtrand.txt
|
|
|
|
PORTDOCS= ${DOCS_IN_WRKSRC} en ${DOCS_IN_DOC:M*.txt}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# make non-conflicting with the slave port
|
|
|
|
DOCSDIR?= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
EXAMPLESDIR?= ${PREFIX}/share/examples/${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
|
|
|
|
PIXMAPSDIR= ${PREFIX}/share/pixmaps
|
|
|
|
|
|
|
|
# directories with .xar files
|
|
|
|
XARDIRS= Designs Templates TextDesigns testfiles
|
|
|
|
|
|
|
|
PLIST_SUB+= PKGNAMESUFFIX=${PKGNAMESUFFIX} \
|
|
|
|
DESKTOPDIR=${DESKTOPDIR:S|^${PREFIX}/||} \
|
|
|
|
PIXMAPSDIR=${PIXMAPSDIR:S|^${PREFIX}/||}
|
|
|
|
|
2006-04-19 06:15:37 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-04-28 06:25:38 +00:00
|
|
|
.if ${ARCH} != "i386" && ${ARCH} != "amd64" && ${ARCH} != "powerpc"
|
|
|
|
BROKEN= does not configure due to the lack of CDraw libraries for ${ARCH}
|
2006-04-19 06:15:37 +00:00
|
|
|
.endif
|
|
|
|
|
2006-05-26 09:15:33 +00: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-05-31 11:14:29 +00:00
|
|
|
${REINPLACE_CMD} -E \
|
|
|
|
-e 's/^Name=Xara LX$$/Name=Xara LX (${PORTVERSION})/' \
|
|
|
|
-e 's/^FilePattern=xaralx;$$/FilePattern=XaraLX/' \
|
|
|
|
-e 's/^Exec=xaralx %F$$/Exec=XaraLX %F/' \
|
|
|
|
-e 's/^TryExec=xaralx$$/TryExec=XaraLX/' \
|
|
|
|
${WRKSRC}/xaralx.desktop
|
2006-05-26 09:15:33 +00:00
|
|
|
|
2006-04-04 16:02:30 +00:00
|
|
|
pre-configure:
|
2006-06-05 15:29:49 +00:00
|
|
|
cd ${WRKSRC} && \
|
|
|
|
${SETENV} ${AUTOTOOLS_ENV} \
|
|
|
|
ACLOCAL="${ACLOCAL} -I ${LOCALBASE}/share/aclocal" \
|
|
|
|
${AUTORECONF} -f -i -s
|
2006-04-04 16:02:30 +00:00
|
|
|
|
2006-05-31 11:14:29 +00:00
|
|
|
.if !target(do-install)
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${DESKTOPDIR}
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/XaraLX \
|
|
|
|
${PREFIX}/bin/XaraLX${PKGNAMESUFFIX}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/xaralx.desktop \
|
|
|
|
${DESKTOPDIR}/xaralx${PKGNAMESUFFIX}.desktop
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/xaralx.png \
|
|
|
|
${PIXMAPSDIR}/xaralx${PKGNAMESUFFIX}.png
|
|
|
|
.for xardir in ${XARDIRS}
|
|
|
|
${MKDIR} ${EXAMPLESDIR}/${xardir}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${xardir}/*.xar ${EXAMPLESDIR}/${xardir}/
|
|
|
|
.endfor
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/XaraLX.1 \
|
|
|
|
${MANPREFIX}/man/man1/XaraLX${PKGNAMESUFFIX}.1
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${MKDIR} ${DOCSDIR}/en
|
|
|
|
.for d in ${DOCS_IN_WRKSRC}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${d} ${DOCSDIR}/${d}
|
|
|
|
.endfor
|
|
|
|
.for d in ${DOCS_IN_DOC}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${d} ${DOCSDIR}/${d}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2006-04-19 06:15:37 +00:00
|
|
|
.include <bsd.port.post.mk>
|