mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
76e010042e
- Change master sites and add icon - Take maintainership - Add license (GPLv3) - Use the new format for LIB_DEPENDS - Disable all warnings with -w - Support STAGEDIR - Change DOCS, add DOCS Option - Add files/pkg-install.in and files/pkg-message.in - Remove pkg-message - Add Desktop entry file - Change pkg-plist, add icon, remove DOCS PR: ports/174022 Submitted by: nemysis (self)
58 lines
1.4 KiB
Makefile
58 lines
1.4 KiB
Makefile
# Created by: Aaron VonderHaar <avh4@usa.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gnurobots
|
|
PORTVERSION= 1.2.0
|
|
PORTREVISION= 9
|
|
CATEGORIES= games
|
|
MASTER_SITES= GNU \
|
|
SF/nemysisfreebsdp/${CATEGORIES}/:icons
|
|
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
|
|
${PORTNAME}.png:icons
|
|
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= nemysis@FreeBSD.org
|
|
COMMENT= GNU diversion wherein Scheme-coded robots explore a world
|
|
|
|
LICENSE= GPLv3
|
|
|
|
LIB_DEPENDS= libguile.so:${PORTSDIR}/lang/guile
|
|
|
|
USES= pkgconfig
|
|
USE_GNOME= vte
|
|
GNU_CONFIGURE= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} -w
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
|
|
|
PORTDOCS= *
|
|
|
|
DOCSRCDIR1= ${WRKSRC}
|
|
DOC_FILES1= AUTHORS ChangeLog NEWS README THANKS TODO
|
|
|
|
DOCSRCDIR2= ${WRKSRC}/doc
|
|
DOCSDIR2= ${DOCSDIR}/doc
|
|
DOC_FILES2= Robots-HOWTO contrib
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
SUB_FILES= pkg-install pkg-message
|
|
|
|
DESKTOP_ENTRIES="GNU Robots" "" "${PORTNAME}" \
|
|
"${PORTNAME}" "Game;ArcadeGame;" ""
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's|#include <pty.h>||g' ${WRKSRC}/src/ui-cmdwin.c
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR2}
|
|
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
|
|
|
|
.include <bsd.port.mk>
|