3bfccf6ba8
slarrfun.c can be passed via the environment rather than in a patch; do this and only apply it to amd64.
52 lines
1.2 KiB
Makefile
52 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.48 2009/10/25 11:48:09 sthen Exp $
|
|
|
|
COMMENT= stack-based interpreter for terminal applications
|
|
|
|
DISTNAME= slang-2.2.1
|
|
PKGNAME= lib${DISTNAME}p1
|
|
SHARED_LIBS= slang 15.0
|
|
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ftp://space.mit.edu/pub/davis/slang/v2.2/ \
|
|
ftp://ftp.fu-berlin.de/pub/unix/misc/slang/v2.2/
|
|
|
|
HOMEPAGE= http://www.s-lang.org/
|
|
|
|
# Artistic
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
WANTLIB= c m termcap z
|
|
|
|
LIB_DEPENDS= pcre::devel/pcre \
|
|
onig::textproc/oniguruma
|
|
MODULES= converters/libiconv
|
|
|
|
AUTOCONF_VERSION= 2.61
|
|
CONFIGURE_STYLE= autoconf no-autoheader
|
|
AUTOCONF_DIR= ${WRKSRC}/autoconf
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/autoconf
|
|
|
|
REGRESS_TARGET= runtests
|
|
REGRESS_FLAGS= TCAPLIB="-ltermlib"
|
|
|
|
MAKE_ENV= LIBslang_MAJOR=${LIBslang_VERSION:R} \
|
|
LIBslang_MINOR=${LIBslang_VERSION:E}
|
|
|
|
# GCC 3.3 optimizer problems: http://marc.info/?m=125562659714004
|
|
.if ${MACHINE_ARCH} == "amd64"
|
|
MAKE_ENV+= slarrfun_C_FLAGS=-O0
|
|
.endif
|
|
|
|
pre-configure:
|
|
cd ${AUTOCONF_DIR}; cp configure ..
|
|
|
|
.include <bsd.port.mk>
|
|
|
|
.if !(defined(NO_SHARED_LIBS) && ${NO_SHARED_LIBS:L} == "yes")
|
|
ALL_TARGET= all elf
|
|
INSTALL_TARGET= install-elf
|
|
.endif
|