71 lines
1.7 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.8 2001/10/02 20:18:59 heko Exp $
2000-04-11 20:08:46 +00:00
# Original from: Bruno Rohee <rohee@OpenBSD.ORG>
#
# Many variables moved to ../Makefile.inc
#
COMMENT= "test-bed browser/authoring tool of the W3C"
AMAYA_VERSION= 5.1
2000-04-11 20:08:46 +00:00
DISTNAME= amaya-src-${AMAYA_VERSION}
PKGNAME= amaya-${AMAYA_VERSION}
HOMEPAGE= http://www.w3.org/Amaya/
NEED_VERSION= 1.454
FLAVORS= motif gtk
FLAVOR?= motif
LIB_DEPENDS+= expat.2::textproc/expat
.if ${FLAVOR:L} == "gtk"
CONFIGURE_ARGS+= --with-gtk=${LOCALBASE}
# I'm too lazy to write a proper imlib autoconf test.
LIB_DEPENDS+= gdk_imlib.19::graphics/imlib
.elif ${FLAVOR:L} == "motif"
2000-04-11 20:08:46 +00:00
USE_MOTIF= any
LIB_DEPENDS+= jpeg.62::graphics/jpeg \
png.2::graphics/png
CONFIGURE_ARGS+= --without-gtk \
--with-motif-includes=${LOCALBASE}/include \
--with-motif-libraries=${LOCALBASE}/lib
.else
ERRORS+= "Fatal: Conflicting or missing flavor: '${FLAVOR}'"
.endif
2000-04-11 20:08:46 +00:00
WRKSRC= ${WRKDIR}/Amaya
WRKBUILD= ${WRKDIR}/Amaya/obj
WRKDIST= ${WRKDIR}
2000-04-11 20:08:46 +00:00
USE_GMAKE= Yes
CONFIGURE_STYLE= autoconf dest
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/../libwww/config
2001-03-17 12:23:44 +00:00
CONFIGURE_SCRIPT= ../configure
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS+= --without-graphic-libs
# 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 20:08:46 +00:00
post-configure:
@cd ${WRKBUILD} && cp Options.orig Options
2000-04-11 20:08:46 +00:00
pre-install:
${STRIP} ${WRKBUILD}/bin/amaya
${STRIP} ${WRKBUILD}/bin/print
post-install:
cd ${PREFIX}/bin; rm amaya; \
ln -s ${TRUEPREFIX}/Amaya/applis/bin/amaya
2000-04-11 20:08:46 +00:00
.include <bsd.port.mk>