52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.54 2015/05/20 20:38:46 sthen Exp $
|
|
|
|
COMMENT= SLang-based newsreader
|
|
|
|
DISTNAME= slrn-1.0.2
|
|
REVISION= 0
|
|
CATEGORIES= news
|
|
|
|
HOMEPAGE= http://slrn.sourceforge.net/
|
|
|
|
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
|
|
|
# GPLv2+
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB= c crypto m ssl termcap slang
|
|
|
|
MASTER_SITES= http://jedsoft.org/releases/slrn/ \
|
|
http://jedsoft.org/releases/slrn/old/
|
|
|
|
MAKE_ARGS+= LDFLAGS="${LDFLAGS}"
|
|
|
|
NO_TEST= Yes
|
|
LIB_DEPENDS= devel/libslang
|
|
MODULES= devel/gettext
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
BUILD_DEPENDS= ${MODGNU_AUTOCONF_DEPENDS}
|
|
AUTOCONF_VERSION= 2.69
|
|
AUTOCONF_DIR= ${WRKSRC}/autoconf
|
|
CONFIGURE_ARGS+= --disable-inews \
|
|
--with-libiconv-prefix=${LOCALBASE} \
|
|
--with-ssl \
|
|
--with-slrnpull \
|
|
--enable-spool
|
|
LDFLAGS= -L${LOCALBASE}/lib -lm
|
|
CONFIGURE_ENV= LDFLAGS="${LDFLAGS}" CPPFLAGS="-I${LOCALBASE}/include"
|
|
CONFIGURE_ARGS+= --with-slang=${LOCALBASE}
|
|
|
|
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/autoconf
|
|
|
|
# replace bundled m4 files with the newer (working ;) ones from gettext
|
|
post-patch:
|
|
.for i in gettext lib-ld lib-prefix nls progtest iconv lib-link po
|
|
cp ${LOCALBASE}/share/aclocal/$i.m4 ${WRKSRC}/autoconf/include/
|
|
.endfor
|
|
cd ${WRKSRC}/autoconf && \
|
|
AUTOCONF_VERSION=${AUTOCONF_VERSION} autoconf && \
|
|
mv configure ..
|
|
|
|
.include <bsd.port.mk>
|