Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # $OpenBSD: Makefile,v 1.65 2017/05/25 11:27:08 espie Exp $
  2. COMMENT= Emacs Lisp-like runtime library
  3. VERSION= 0.92.3
  4. DISTNAME= librep-${VERSION}
  5. SHARED_LIBS += rep 14.0 # .16.0
  6. CATEGORIES= lang
  7. HOMEPAGE= http://librep.sourceforge.net/
  8. MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>
  9. # GPLv2
  10. PERMIT_PACKAGE_CDROM= Yes
  11. MASTER_SITES= http://download.tuxfamily.org/librep/
  12. EXTRACT_SUFX= .tar.xz
  13. WANTLIB= c gdbm gmp ffi m ncurses pthread readline
  14. MODULES= devel/gettext
  15. LIB_DEPENDS= databases/gdbm \
  16. devel/gmp \
  17. devel/libffi
  18. USE_GMAKE= Yes
  19. MAKE_FLAGS= rep_LIBTOOL=${LIBTOOL}
  20. CONFIGURE_STYLE= gnu
  21. CONFIGURE_ARGS+= --enable-static \
  22. --with-aclocaldir=${PREFIX}/share/aclocal
  23. # -pthread is needed for opening libglib-2.0:
  24. # rep:/usr/local/lib/libglib-2.0.so.3200.0: undefined symbol 'pthread_mutex_trylock'
  25. # lazy binding failed!
  26. CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -pthread" \
  27. LDFLAGS="-L${LOCALBASE}/lib -liconv -lintl -pthread"
  28. CFLAGS += -fgnu89-inline
  29. pre-configure:
  30. ${SUBST_CMD} ${WRKSRC}/src/rep-xgettext.jl
  31. # The bundled libtool gets installed by default, override it by installing
  32. # the ports version directly.
  33. post-install:
  34. ${INSTALL_SCRIPT} ${LIBTOOL} ${PREFIX}/lib/rep/
  35. .include <bsd.port.mk>