2011-09-16 08:00:05 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.28 2011/09/16 12:00:06 espie Exp $
|
2000-04-11 16:08:46 -04:00
|
|
|
#
|
|
|
|
# Many variables moved to ../Makefile.inc
|
|
|
|
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT= test-bed browser/authoring tool of the W3C
|
2001-05-06 00:22:45 -04:00
|
|
|
|
2001-10-02 16:18:59 -04:00
|
|
|
AMAYA_VERSION= 5.1
|
2000-04-11 16:08:46 -04:00
|
|
|
DISTNAME= amaya-src-${AMAYA_VERSION}
|
2010-11-11 07:35:09 -05:00
|
|
|
PKGNAME= amaya-${AMAYA_VERSION}
|
2011-09-16 08:00:05 -04:00
|
|
|
REVISION= 8
|
2000-04-11 16:08:46 -04:00
|
|
|
|
2001-10-02 16:18:59 -04:00
|
|
|
HOMEPAGE= http://www.w3.org/Amaya/
|
|
|
|
|
|
|
|
FLAVORS= motif gtk
|
|
|
|
FLAVOR?= motif
|
|
|
|
|
2010-11-11 07:35:09 -05:00
|
|
|
WANTLIB += ICE SM X11 Xext Xt c expat m pthread-stubs xcb z
|
2006-11-13 07:51:14 -05:00
|
|
|
|
2001-10-02 16:18:59 -04:00
|
|
|
.if ${FLAVOR:L} == "gtk"
|
2011-07-06 20:22:37 -04:00
|
|
|
MODULES += devel/gettext
|
2001-10-02 16:18:59 -04:00
|
|
|
CONFIGURE_ARGS+= --with-gtk=${LOCALBASE}
|
|
|
|
# I'm too lazy to write a proper imlib autoconf test.
|
2010-11-22 03:36:47 -05:00
|
|
|
LIB_DEPENDS+= graphics/imlib
|
2011-07-06 20:22:37 -04:00
|
|
|
WANTLIB += Xi gdk gif glib gmodule gtk jpeg png tiff gdk_imlib.>=19
|
2001-10-02 16:18:59 -04:00
|
|
|
.elif ${FLAVOR:L} == "motif"
|
2011-04-10 14:00:23 -04:00
|
|
|
WANTLIB += jpeg png Xm
|
2010-11-22 03:36:47 -05:00
|
|
|
LIB_DEPENDS+= graphics/jpeg \
|
2011-04-10 14:00:23 -04:00
|
|
|
graphics/png \
|
|
|
|
x11/openmotif
|
2001-10-02 16:18:59 -04:00
|
|
|
CONFIGURE_ARGS+= --without-gtk \
|
|
|
|
--with-motif-includes=${LOCALBASE}/include \
|
|
|
|
--with-motif-libraries=${LOCALBASE}/lib
|
|
|
|
|
|
|
|
.else
|
2007-09-15 19:36:43 -04:00
|
|
|
ERRORS+= "Fatal: Conflicting or missing flavor: '${FLAVOR}'"
|
2001-10-02 16:18:59 -04:00
|
|
|
.endif
|
2000-04-11 16:08:46 -04:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/Amaya
|
2001-10-02 16:18:59 -04:00
|
|
|
WRKBUILD= ${WRKDIR}/Amaya/obj
|
|
|
|
WRKDIST= ${WRKDIR}
|
2000-04-11 16:08:46 -04:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
2007-04-07 10:54:12 -04:00
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
LIBTOOL_FLAGS= --tag=disable-shared
|
2005-11-03 13:28:55 -05:00
|
|
|
AUTOCONF_VERSION= 2.13
|
2001-10-02 16:18:59 -04:00
|
|
|
CONFIGURE_STYLE= autoconf dest
|
2001-09-28 02:02:12 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/../libwww/config
|
2001-03-17 07:23:44 -05:00
|
|
|
CONFIGURE_SCRIPT= ../configure
|
2007-04-28 15:45:41 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include -I${LOCALBASE}/include/libpng" \
|
|
|
|
LIBS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
|
2001-10-02 16:18:59 -04:00
|
|
|
CONFIGURE_ARGS+= --without-graphic-libs
|
2011-04-10 14:00:23 -04:00
|
|
|
MAKE_ENV+=MOTIFLIB='-L${LOCALBASE}/lib -lXm'
|
2001-10-02 16:18:59 -04:00
|
|
|
|
|
|
|
# We need to regenerate configure in two places, Amaya/ and libwww/
|
|
|
|
AUTOCONF_DIR= ${WRKSRC}
|
|
|
|
post-patch:
|
|
|
|
@cd ${WRKDIST}/libwww && exec ${SETENV} \
|
|
|
|
${AUTOCONF_ENV} ${AUTOCONF}
|
2000-04-11 16:08:46 -04:00
|
|
|
|
2001-10-02 16:18:59 -04:00
|
|
|
post-configure:
|
|
|
|
@cd ${WRKBUILD} && cp Options.orig Options
|
2002-10-28 20:30:41 -05:00
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
2001-10-02 16:18:59 -04:00
|
|
|
|
2000-04-11 16:08:46 -04:00
|
|
|
pre-install:
|
|
|
|
${STRIP} ${WRKBUILD}/bin/amaya
|
|
|
|
${STRIP} ${WRKBUILD}/bin/print
|
|
|
|
|
2000-06-20 11:27:19 -04:00
|
|
|
post-install:
|
2001-10-02 16:18:59 -04:00
|
|
|
cd ${PREFIX}/bin; rm amaya; \
|
|
|
|
ln -s ${TRUEPREFIX}/Amaya/applis/bin/amaya
|
2000-06-20 11:27:19 -04:00
|
|
|
|
2000-04-11 16:08:46 -04:00
|
|
|
.include <bsd.port.mk>
|