freebsd-ports/games/glbsp/Makefile
Alexey Dokuchaev c564bf22b9 games/glbsp: update the port to version 2.24 + miscellaneous fixes
- Catch up with new improved directory layout: the main code moved
  into the ``src'' subdirectory; existing makefiles had been fixed
  and consolidated so each type of target (lib/cmdline/gui) is now
  handled in the same makefile
- Drop PLUGIN option and simply install the header file and static
  library for consumer ports' convenience
- Install more complete set of documentation files while I'm at it
2022-11-24 08:35:28 +00:00

45 lines
1.3 KiB
Makefile

PORTNAME= glbsp
PORTVERSION= 2.24
CATEGORIES= games
MASTER_SITES= SF
DISTNAME= ${PORTNAME}_src_${PORTVERSION:S/.//}
MAINTAINER= danfe@FreeBSD.org
COMMENT= BSP node builder for OpenGL-based DOOM engines
WWW= https://glbsp.sourceforge.net/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING.txt
USES= gmake
MAKEFILE= Makefile.unx
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-source
PORTDOCS= AUTHORS.txt CHANGES.txt README.txt TRICKS.txt USAGE.txt
PLIST_FILES= bin/glbsp man/man1/glbsp.1.gz include/glbsp.h lib/libglbsp.a
OPTIONS_DEFINE= DOCS GUI
GUI_DESC= Build FLTK based GUI
GUI_LIB_DEPENDS= libfltk.so:x11-toolkits/fltk \
libfontconfig.so:x11-fonts/fontconfig \
libpng.so:graphics/png
GUI_USES= jpeg xorg
GUI_USE= XORG=x11,xcursor,xext,xfixes,xft,xinerama,xrender
GUI_ALL_TARGET= all glBSPX
GUI_PLIST_FILES= bin/glBSPX
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/glbsp ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/glbsp.1 ${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/src/glbsp.h ${STAGEDIR}${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/libglbsp.a ${STAGEDIR}${PREFIX}/lib
do-install-GUI-on:
${INSTALL_PROGRAM} ${WRKSRC}/glBSPX ${STAGEDIR}${PREFIX}/bin
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>