55 lines
1.3 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.68 2018/11/02 18:48:39 naddy Exp $
COMMENT= Emacs Lisp-like runtime library
2015-01-19 09:19:15 +00:00
VERSION= 0.92.3
DISTNAME= librep-${VERSION}
REVISION= 1
2011-05-02 17:22:37 +00:00
SHARED_LIBS += rep 14.0 # .16.0
2002-10-27 14:12:47 +00:00
CATEGORIES= lang
HOMEPAGE= http://librep.sourceforge.net/
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= c ffi gdbm gmp iconv intl m ncurses pthread readline
2017-12-02 21:39:49 +00:00
MASTER_SITES= https://download.tuxfamily.org/librep/
2011-11-15 19:32:14 +00:00
EXTRACT_SUFX= .tar.xz
2010-11-17 08:05:12 +00:00
LIB_DEPENDS= databases/gdbm \
devel/gmp \
devel/libffi
USE_GMAKE= Yes
MAKE_FLAGS= rep_LIBTOOL=${LIBTOOL}
CONFIGURE_STYLE= gnu
2016-03-11 20:28:21 +00:00
CONFIGURE_ARGS+= --enable-static \
--with-aclocaldir=${PREFIX}/share/aclocal
# -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"
2017-05-25 11:27:08 +00:00
CFLAGS += -fgnu89-inline
pre-configure:
${SUBST_CMD} ${WRKSRC}/src/rep-xgettext.jl
# The bundled libtool gets installed by default, override it by installing
# the ports version directly.
post-install:
2011-05-02 17:22:37 +00:00
${INSTALL_SCRIPT} ${LIBTOOL} ${PREFIX}/lib/rep/
2002-10-27 14:12:47 +00:00
.include <bsd.port.mk>