mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
0d2725682b
structure (i.e. include/SDL for includes and sdl-config for configuration binary) - Update graphics/sdl_ttf to version 2.0.8 - Update graphics/sdl_image to version 1.2.5 - Update audio/sdl_mixer to version 1.2.7 - Update net/sdl_net to version 1.2.6 - Update Mk/bsd.sdl.mk accordingly - Fix dependent ports to fit the new directory structure and avoid several API breakages - Bump up portrevisions for all dependent ports to allow them to be upgraded by portupgrade/portmaster etc tools Approved by: kris (portmgr), sem (mentor)
103 lines
2.2 KiB
Makefile
103 lines
2.2 KiB
Makefile
# New ports collection makefile for: airrox
|
|
# Date created: 12 Jul 2005
|
|
# Whom: Alejandro Pulver <alejandro@varnet.biz>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= airrox
|
|
PORTVERSION= 0.0.4
|
|
PORTREVISION= 3
|
|
CATEGORIES= games
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
DISTNAME= ${PORTNAME}-0.04
|
|
|
|
MAINTAINER= alepulver@FreeBSD.org
|
|
COMMENT= An 3D Air Hockey, which uses SDL & OpenGL
|
|
|
|
LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut
|
|
|
|
USE_GMAKE= yes
|
|
USE_SDL= mixer net sdl
|
|
USE_GL= yes
|
|
REINPLACE_ARGS= -i ''
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}/source
|
|
|
|
OPTIONS= OPTIMIZED_CFLAGS "Enable compilation optimizations" on
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
ALL_TARGET= linux
|
|
|
|
DIRS= audio icones imagens meshs texturas
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} < 500000
|
|
IGNORE= needs sscanf() interface in libc
|
|
.endif
|
|
|
|
post-patch:
|
|
# Fix Makefile.
|
|
@${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g ; \
|
|
s|-lSDL ||g ; \
|
|
s|-lpthread||g ; \
|
|
s|sdl-config|${SDL_CONFIG}|g ; \
|
|
s|\(-O2\)|${CFLAGS} -I${X11BASE}/include \
|
|
`${SDL_CONFIG} --cflags` \1| ; \
|
|
s|$$(INCLUDEWIN)||g ; \
|
|
s|g++|${CXX}|g' \
|
|
${WRKSRC}/${MAKEFILE}
|
|
|
|
# Fix SDL include statement.
|
|
.for f in *.cpp *.h
|
|
@${FIND} ${WRKSRC} -type f -name "${f}" -print0 | \
|
|
${XARGS} -0 ${REINPLACE_CMD} -e \
|
|
's|\(#include.*\)SDL/\(SDL.*\)|\1\2|'
|
|
.endfor
|
|
|
|
# Fix paths to ${DATADIR}.
|
|
.for d in ${DIRS}
|
|
@${REINPLACE_CMD} -e 's|../\(${d}/\)|${DATADIR}/\1|' \
|
|
${WRKSRC}/*.cpp ${WRKSRC}/*.h
|
|
.endfor
|
|
|
|
# Enable/disable compilation optimizations.
|
|
.if defined(WITHOUT_OPTIMIZED_CFLAGS)
|
|
@${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/${MAKEFILE}
|
|
.endif
|
|
|
|
do-install:
|
|
# Program.
|
|
${INSTALL_PROGRAM} ${WRKSRC}/air ${PREFIX}/bin/${PORTNAME}
|
|
|
|
# Data.
|
|
${MKDIR} ${DATADIR}
|
|
|
|
# Data: directories.
|
|
.for d in ${DIRS}
|
|
${CP} -R ${WRKDIR}/${PORTNAME}/${d} ${DATADIR}
|
|
.endfor
|
|
|
|
# Data: config.txt.
|
|
${INSTALL_DATA} ${WRKSRC}/config.txt ${DATADIR}
|
|
|
|
# Remove CVS directories.
|
|
@${FIND} ${DATADIR} -type d -name "CVS" -print0 | \
|
|
${XARGS} -0 ${RM} -rf
|
|
|
|
# Documentation (optional).
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${FILESDIR}/readme.txt ${DOCSDIR}
|
|
.endif
|
|
|
|
post-install:
|
|
@${ECHO_CMD}
|
|
@${CAT} ${PKGMESSAGE}
|
|
@${ECHO_CMD}
|
|
|
|
.include <bsd.port.post.mk>
|