diff options
author | koobs <koobs@FreeBSD.org> | 2016-10-28 20:08:07 +0800 |
---|---|---|
committer | koobs <koobs@FreeBSD.org> | 2016-10-28 20:08:07 +0800 |
commit | ec723e662a066c7112f27fccca6cb6e0e30ca376 (patch) | |
tree | c62668b9cae9dc69f6464f29f4ee2262bd5cff90 /devel | |
parent | d9268f1af86a9fbfb2b7cb6bc3d0946318a3c18b (diff) | |
download | freebsd-ports-gnome-ec723e662a066c7112f27fccca6cb6e0e30ca376.tar.gz freebsd-ports-gnome-ec723e662a066c7112f27fccca6cb6e0e30ca376.tar.zst freebsd-ports-gnome-ec723e662a066c7112f27fccca6cb6e0e30ca376.zip |
devel/libfaketime: Enable FEAT(ures), Fix typo's
- Fix FEATS variable missing from FLAGS added to CFLAGS in src/Makefile
- Explicitly set/add FEATS in MAKE_ENV, with comment about the
FAKE_STAT feature (it doesn't build).
- Fix typo in man page variable name (MAN[D]IR) causing man page to be
installed in PREFIX/share. Also MANDIR is relative, not absolute.
- Update PLIST_FILES accordingly.
- Bump PORTREVISION.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libfaketime/Makefile | 11 | ||||
-rw-r--r-- | devel/libfaketime/files/patch-src_Makefile | 2 |
2 files changed, 9 insertions, 4 deletions
diff --git a/devel/libfaketime/Makefile b/devel/libfaketime/Makefile index 45542877cd65..f4baa0390ff1 100644 --- a/devel/libfaketime/Makefile +++ b/devel/libfaketime/Makefile @@ -4,6 +4,7 @@ PORTNAME= libfaketime DISTVERSIONPREFIX= v DISTVERSION= 0.9.6-20160627 +PORTREVISION= 1 CATEGORIES= devel MAINTAINER= koobs@FreeBSD.org @@ -19,15 +20,19 @@ USE_LDCONFIG= yes GH_ACCOUNT= wolfcw GH_TAGNAME= da77808 -MAKE_ENV+= WARNS="-Wall" \ - MANIR="${MANDIRS}" +# FAKE_STAT doesn't currently work on FreeBSD +# Add -DFAKE_STAT to FEATS to see why + +MAKE_ENV+= FEATS="-DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS" \ + WARNS="-Wall" \ + MANDIR="/man" PLIST_FILES= bin/faketime \ lib/faketime/libfaketime.so.1 \ lib/faketime/libfaketimeMT.so.1 \ share/doc/faketime/NEWS \ share/doc/faketime/README \ - share/man/man1/faketime.1.gz + man/man1/faketime.1.gz SHEBANG_FILES= test/testframe.sh \ test/functests/common.inc diff --git a/devel/libfaketime/files/patch-src_Makefile b/devel/libfaketime/files/patch-src_Makefile index 08939a4c59f3..1d1e3785ffbf 100644 --- a/devel/libfaketime/files/patch-src_Makefile +++ b/devel/libfaketime/files/patch-src_Makefile @@ -10,7 +10,7 @@ + +WARNS ?= -Wall -Wextra -Werror +FEATS ?= -DFAKE_STAT -DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -+FLAGS ?= -std=gnu99 -fPIC $(WARNS) -DPREFIX='"'$(PREFIX)'"' -DLIBDIRNAME='"'$(LIBDIRNAME)'"' ++FLAGS ?= -std=gnu99 -fPIC $(WARNS) $(FEATS) -DPREFIX='"'$(PREFIX)'"' -DLIBDIRNAME='"'$(LIBDIRNAME)'"' + ifeq ($(PLATFORM),SunOS) -CFLAGS += -D__EXTENSIONS__ -D_XOPEN_SOURCE=600 |