diff options
author | wg <wg@FreeBSD.org> | 2013-06-15 06:13:04 +0800 |
---|---|---|
committer | wg <wg@FreeBSD.org> | 2013-06-15 06:13:04 +0800 |
commit | b0d8163ba431315eb169d03390c63d7c6a6bc31f (patch) | |
tree | db29aa23cde004da35a75b224865976e5c047813 | |
parent | 9830b300844b4c07106f93f5968a3a4179645052 (diff) | |
download | freebsd-ports-gnome-b0d8163ba431315eb169d03390c63d7c6a6bc31f.tar.gz freebsd-ports-gnome-b0d8163ba431315eb169d03390c63d7c6a6bc31f.tar.zst freebsd-ports-gnome-b0d8163ba431315eb169d03390c63d7c6a6bc31f.zip |
net/pmf: fix build with clang
- Fix build with clang, -Wno-return-type
- NOPORTEXAMPLES -> PORT_OPTIONS:MEXAMPLES
- NOPORTDOCS -> PORT_OPTIONS:MDOCS
- Trim Makefile header
Approved by: culot / jpaetzel (mentors, implicit)
-rw-r--r-- | net/pmf/Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/pmf/Makefile b/net/pmf/Makefile index 118e69edd570..de2a5d912e5a 100644 --- a/net/pmf/Makefile +++ b/net/pmf/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: pmf -# Date created: 24 Sep 1994 -# Whom: adam -# +# Created by: adam # $FreeBSD$ -# PORTNAME= pmf PORTVERSION= 1.13.1 @@ -21,6 +17,10 @@ DOCSRC= ${WRKSRC}/../doc XMPSRC= ${WRKSRC}/../examples SUB_FILES= pmfrc.default +CFLAGS+= -Wno-return-type + +.include <bsd.port.options.mk> + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/pmf ${PREFIX}/bin @${MKDIR} ${DATADIR} @@ -29,12 +29,12 @@ do-install: @${MKDIR} ${DATADIR}/helpfiles ${INSTALL_DATA} ${SYSSRC}/helpfiles/.pmfrc ${DATADIR}/helpfiles ${INSTALL_DATA} ${SYSSRC}/helpfiles/* ${DATADIR}/helpfiles -.if !defined(NOPORTEXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${EXAMPLESDIR} ${INSTALL_DATA} ${XMPSRC}/.pmfrc ${EXAMPLESDIR}/dot.pmfrc ${INSTALL_DATA} ${XMPSRC}/* ${EXAMPLESDIR} .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${DOCSRC}/* ${DOCSDIR} .endif |