diff options
author | Anders Nordby <anders@FreeBSD.org> | 2005-03-20 21:24:32 +0000 |
---|---|---|
committer | Anders Nordby <anders@FreeBSD.org> | 2005-03-20 21:24:32 +0000 |
commit | 1a8f4e6d2dd62ce42fba7ad3f92c1b57bd47649a (patch) | |
tree | 2003392fa5fd15b1986dee01edc7fde3ff00fcbd /sysutils/dmidecode | |
parent | 66d27a827747ebb38278c5f96f485a2e5675a73b (diff) | |
download | ports-1a8f4e6d2dd62ce42fba7ad3f92c1b57bd47649a.tar.gz ports-1a8f4e6d2dd62ce42fba7ad3f92c1b57bd47649a.zip |
Notes
Diffstat (limited to 'sysutils/dmidecode')
-rw-r--r-- | sysutils/dmidecode/Makefile | 9 | ||||
-rw-r--r-- | sysutils/dmidecode/files/patch-Makefile | 31 | ||||
-rw-r--r-- | sysutils/dmidecode/pkg-plist | 4 |
3 files changed, 35 insertions, 9 deletions
diff --git a/sysutils/dmidecode/Makefile b/sysutils/dmidecode/Makefile index 6a9b8e820672..68d1ba89b828 100644 --- a/sysutils/dmidecode/Makefile +++ b/sysutils/dmidecode/Makefile @@ -19,18 +19,17 @@ ONLY_FOR_ARCHS= i386 amd64 ia64 USE_BZIP2= yes USE_REINPLACE= yes +USE_GETOPT_LONG= yes +MAKE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" -DOCS= AUTHORS CHANGELOG README +PORTDOCS= AUTHORS CHANGELOG README MAN8= biosdecode.8 dmidecode.8 ownership.8 vpddecode.8 -post-patch: - ${REINPLACE_CMD} -e "s@^(CC|PREFIX).*@@" ${WRKSRC}/Makefile - .if !defined(NOPORTDOCS) post-install: ${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR} -.for f in ${DOCS} +.for f in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/ .endfor .endif diff --git a/sysutils/dmidecode/files/patch-Makefile b/sysutils/dmidecode/files/patch-Makefile new file mode 100644 index 000000000000..406565c4f852 --- /dev/null +++ b/sysutils/dmidecode/files/patch-Makefile @@ -0,0 +1,31 @@ +--- Makefile.orig Mon Feb 28 21:43:00 2005 ++++ Makefile Sun Mar 20 22:16:32 2005 +@@ -8,9 +8,9 @@ + # Licensed under the GNU Public License. + # + +-CC = gcc +-CFLAGS = -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \ +- -Wcast-align -Wwrite-strings -Wmissing-prototypes ++CFLAGS += -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \ ++ -Wcast-align -Wwrite-strings -Wmissing-prototypes ${CPPFLAGS} \ ++ -DHAVE_DECL_GETOPT + #CFLAGS += -DBIGENDIAN + #CFLAGS += -DALIGNMENT_WORKAROUND + +@@ -19,12 +19,11 @@ + #CFLAGS += -g + + # Pass linker flags here +-LDFLAGS = ++LDFLAGS += + + DESTDIR = +-prefix = /usr/local +-sbindir = $(prefix)/sbin +-mandir = $(prefix)/man ++sbindir = $(PREFIX)/sbin ++mandir = $(PREFIX)/man + man8dir = $(mandir)/man8 + + all : dmidecode biosdecode ownership vpddecode diff --git a/sysutils/dmidecode/pkg-plist b/sysutils/dmidecode/pkg-plist index 0e91d87dd3d1..db51f69c4fb3 100644 --- a/sysutils/dmidecode/pkg-plist +++ b/sysutils/dmidecode/pkg-plist @@ -2,7 +2,3 @@ sbin/biosdecode sbin/dmidecode sbin/ownership sbin/vpddecode -%%PORTDOCS%%%%DOCSDIR%%/AUTHORS -%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%@dirrm %%DOCSDIR%% |