openbsd-ports

OpenBSD Ports customizations and WIP
git clone git://git.danielmoch.com/openbsd-ports.git
Log | Files | Refs

Makefile (2178B)


      1 # $OpenBSD: Makefile.template,v 1.54 2008/01/13 16:43:57 espie Exp $
      2 
      3 COMMENT-main =		mail indexer, tagger and threader
      4 COMMENT-emacs =		Emacs bindings for notmuch
      5 
      6 PKGNAME-main =		notmuch-${V}
      7 PKGNAME-emacs =		notmuch-emacs-${V}
      8 
      9 SHARED_LIBS +=		notmuch	0.0
     10 
     11 MULTI_PACKAGES =	-main -emacs
     12 DEBUG_PACKAGES =	-main
     13 
     14 COMPILER=		base-clang ports-gcc
     15 
     16 WANTLIB-main +=		${COMPILER_LIBCXX} c glib-2.0 gmime-3.0
     17 WANTLIB-main +=		gobject-2.0 intl m talloc xapian z
     18 
     19 LIB_DEPENDS =		databases/xapian-core \
     20 			devel/libtalloc \
     21 			mail/gmime30
     22 
     23 RUN_DEPENDS-emacs =	devel/desktop-file-utils \
     24 			databases/xapian-core \
     25 			editors/emacs \
     26 			${FULLPKGNAME-main}:${FULLPKGPATH-main}
     27 
     28 BUILD_DEPENDS =		devel/doxygen \
     29 			editors/emacs,gtk3 \
     30 			shells/bash \
     31 			textproc/py-sphinx
     32 
     33 TEST_DEPENDS =		devel/gdb \
     34 			misc/dtach \
     35 			security/gnupg \
     36 			sysutils/coreutils \
     37 			${FULLPKGNAME-main}:${FULLPKGPATH-main}
     38 
     39 MODULES =		lang/python
     40 MODPY_RUNDEP =		No
     41 USE_GMAKE =		Yes
     42 CONFIGURE_STYLE =	simple
     43 CONFIGURE_ARGS =	--mandir=${PREFIX}/man \
     44 			--infodir=${PREFIX}/info \
     45 			--sysconfdir=${SYSCONFDIR} \
     46 			--bashcompletiondir=${PREFIX}/share/notmuch/bash_completion.d
     47 CONFIGURE_ENV =		PYTHON=${MODPY_BIN}
     48 MAKE_FLAGS =		V=1
     49 
     50 LIBnotmuch_MAJOR =	${LIBnotmuch_VERSION:R}
     51 LIBnotmuch_MINOR =	${LIBnotmuch_VERSION:E}
     52 SUBST_VARS =		LIBnotmuch_MAJOR LIBnotmuch_MINOR NOTMUCH_LIBV
     53 
     54 # known problems:
     55 # - emacs.65 and gzip hang so the tests are disabled below
     56 # - SIGSEGV in various tests (incl. T150-tagging,
     57 #   T240-dump-restore, T600-named-queries)
     58 # - T750-user-header hits what looks like a use-after-free
     59 TEST_FLAGS =	V=1 \
     60 		NOTMUCH_TEST_SERIALIZE=1 \
     61 		NOTMUCH_SKIP_TESTS="emacs.65 gzip" \
     62 		TEST_CFLAGS="-O0 -g -I${LOCALBASE}/include -L${LOCALBASE}/lib"
     63 TEST_TARGET =	test
     64 
     65 post-extract:
     66 	cd ${WRKSRC}/test; [ -r test-lib-OPENBSD.sh ] || \
     67 	    cp test-lib-FREEBSD.sh test-lib-OPENBSD.sh
     68 
     69 # Avoid conflict with C++20 <version>, also see patches
     70 pre-configure:
     71 	cd ${WRKSRC}; mv version version.txt; \
     72 	    ${SUBST_CMD} lib/notmuch.h
     73 
     74 post-install:
     75 	rm ${PREFIX}/man/man1/notmuch-setup.1.gz
     76 	gunzip ${PREFIX}/man/*/*gz
     77 	ln -s notmuch.1 ${PREFIX}/man/man1/notmuch-setup.1
     78 
     79 .include <bsd.port.mk>