1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/net/pmf/Makefile
William Grzybowski 0ee84cbda4 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)
2013-06-14 22:13:04 +00:00

43 lines
1.0 KiB
Makefile

# Created by: adam
# $FreeBSD$
PORTNAME= pmf
PORTVERSION= 1.13.1
CATEGORIES= net
MASTER_SITES= http://ftp.ntua.gr/pub/net/mud/lpmud/clients/pmf/ \
LOCAL/glarkin
MAINTAINER= ports@FreeBSD.org
COMMENT= Padrone's Mud Frontend
WRKSRC= ${WRKDIR}/pmfdir/src
SYSSRC= ${WRKSRC}/../system_dir
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}
${INSTALL_DATA} ${SYSSRC}/NEWS ${DATADIR}
${INSTALL_DATA} ${WRKDIR}/pmfrc.default ${DATADIR}
@${MKDIR} ${DATADIR}/helpfiles
${INSTALL_DATA} ${SYSSRC}/helpfiles/.pmfrc ${DATADIR}/helpfiles
${INSTALL_DATA} ${SYSSRC}/helpfiles/* ${DATADIR}/helpfiles
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${XMPSRC}/.pmfrc ${EXAMPLESDIR}/dot.pmfrc
${INSTALL_DATA} ${XMPSRC}/* ${EXAMPLESDIR}
.endif
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${DOCSRC}/* ${DOCSDIR}
.endif
.include <bsd.port.mk>