2012-07-07 05:07:03 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.58 2012/07/07 09:07:03 jasper Exp $
|
2000-08-20 02:04:21 -04:00
|
|
|
|
2007-09-15 20:27:05 -04:00
|
|
|
COMMENT= Emacs Lisp-like runtime library
|
2001-05-05 21:27:52 -04:00
|
|
|
|
2006-01-03 17:19:26 -05:00
|
|
|
SHARED_ONLY= Yes
|
2002-09-24 03:35:13 -04:00
|
|
|
|
2012-07-07 05:07:03 -04:00
|
|
|
VERSION= 0.92.2.1
|
2000-08-20 02:04:21 -04:00
|
|
|
DISTNAME= librep-${VERSION}
|
2012-03-29 14:57:10 -04:00
|
|
|
|
2011-05-02 13:22:37 -04:00
|
|
|
SHARED_LIBS += rep 14.0 # .16.0
|
2002-10-27 09:12:47 -05:00
|
|
|
|
2009-10-09 09:04:43 -04:00
|
|
|
CATEGORIES= lang
|
2000-08-20 02:04:21 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://librep.sourceforge.net/
|
|
|
|
|
2010-09-27 10:43:38 -04:00
|
|
|
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>
|
|
|
|
|
2009-10-09 09:04:43 -04:00
|
|
|
# GPLv2
|
2000-08-20 02:04:21 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2009-10-09 09:04:43 -04:00
|
|
|
|
2011-03-02 01:39:44 -05:00
|
|
|
MASTER_SITES= http://download.tuxfamily.org/librep/
|
2011-11-15 14:32:14 -05:00
|
|
|
EXTRACT_SUFX= .tar.xz
|
2009-10-09 09:04:43 -04:00
|
|
|
|
2012-03-29 14:57:10 -04:00
|
|
|
WANTLIB= c gdbm gmp ffi m ncurses pthread readline
|
2000-08-20 02:04:21 -04:00
|
|
|
|
2009-10-09 09:04:43 -04:00
|
|
|
MODULES= devel/gettext
|
2010-11-17 03:05:12 -05:00
|
|
|
LIB_DEPENDS= databases/gdbm \
|
|
|
|
devel/gmp \
|
|
|
|
devel/libffi
|
2009-10-09 09:04:43 -04:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
2010-09-23 07:56:25 -04:00
|
|
|
USE_LIBTOOL= Yes
|
2010-11-17 03:05:12 -05:00
|
|
|
USE_GROFF = Yes
|
2009-10-09 09:04:43 -04:00
|
|
|
|
|
|
|
MAKE_FLAGS= rep_LIBTOOL=${LIBTOOL}
|
|
|
|
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
|
|
|
|
--enable-static \
|
|
|
|
--with-aclocaldir=${PREFIX}/share/aclocal
|
2012-03-29 14:57:10 -04:00
|
|
|
|
|
|
|
# -pthread is needed for opening libglib-2.0:
|
|
|
|
# rep:/usr/local/lib/libglib-2.0.so.3200.0: undefined symbol 'pthread_mutex_trylock'
|
|
|
|
# lazy binding failed!
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -pthread" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -liconv -lintl -pthread"
|
2009-10-09 09:04:43 -04:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
${SUBST_CMD} ${WRKSRC}/src/rep-xgettext.jl
|
|
|
|
|
2010-09-23 08:23:54 -04:00
|
|
|
# The bundled libtool gets installed by default, override it by installing
|
2010-09-23 07:56:25 -04:00
|
|
|
# the ports version directly.
|
2009-10-09 09:04:43 -04:00
|
|
|
post-install:
|
2011-05-02 13:22:37 -04:00
|
|
|
${INSTALL_SCRIPT} ${LIBTOOL} ${PREFIX}/lib/rep/
|
2002-10-27 09:12:47 -05:00
|
|
|
|
2000-08-20 02:04:21 -04:00
|
|
|
.include <bsd.port.mk>
|