espie a48f7d2377 a bit of love for slang
- install pkgconfig file (no change in bulk, nothing else picks it up)
- install rc file that makes the integrated shell actually fully functional.

Functional parts tests and okay solene@
2018-05-27 08:37:05 +00:00

49 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.63 2018/05/27 08:37:05 espie Exp $
COMMENT= stack-based interpreter for terminal applications
DISTNAME= slang-2.2.4
REVISION= 4
PKGNAME= lib${DISTNAME}
SHARED_LIBS= slang 16.0
CATEGORIES= devel
MASTER_SITES= http://www.jedsoft.org/releases/slang/old/
HOMEPAGE= http://jedsoft.org/slang/
# Artistic
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += c iconv m onig pcre png termcap z
LIB_DEPENDS= converters/libiconv \
devel/pcre \
graphics/png \
textproc/oniguruma
AUTOCONF_VERSION= 2.61
CONFIGURE_STYLE= autoconf no-autoheader
AUTOCONF_DIR= ${WRKSRC}/autoconf
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/autoconf
CONFIGURE_ARGS= --with-pnginc=${LOCALBASE}/include \
--with-pnglib=${LOCALBASE}/lib
TEST_TARGET= runtests
TEST_FLAGS= TCAPLIB="-ltermlib"
LIBslang_MAJOR=${LIBslang_VERSION:R}
SUBST_VARS += LIBslang_MAJOR
MAKE_ENV= LIBslang_MAJOR=${LIBslang_MAJOR} \
LIBslang_MINOR=${LIBslang_VERSION:E}
pre-configure:
cd ${AUTOCONF_DIR}; cp configure ..
post-install:
mkdir -p ${PREFIX}/share/slsh/examples
mv ${WRKINST}/${SYSCONFDIR}/slsh.rc ${PREFIX}/share/slsh/examples
.include <bsd.port.mk>