1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/games/osgg/Makefile
Dmitry Marakasov 882731be03 A gravity game with addictive gameplay and bad implementation
You are the hyperspace delivery boy, use your spaceship to travel
between space bases in strange places where few people have been
before you.

A fun to play gravity game with built in level editor.

All in glorious 70s style vector graphics.

WWW: http://sourceforge.net/projects/osgg/
2008-12-29 23:10:05 +00:00

40 lines
914 B
Makefile

# New ports collection makefile for: osgg
# Date created: 29 Dec 2008
# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= osgg
DISTVERSION= 0.9beta
CATEGORIES= games
MASTER_SITES= SF
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= OldSkool Gravity Game
USE_BZIP2= yes
USE_SDL= sdl image ttf
USE_GL= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
post-patch:
@${RM} -f ${WRKSRC}/osgg
@${REINPLACE_CMD} -e 's|"[a-z]*.txt"|DATADIR&|' ${WRKSRC}/main.cpp
do-build:
cd ${WRKSRC} && ${CXX} ${CXXFLAGS} `${SDL_CONFIG} --libs --cflags` \
-lGL -lSDL_image -lSDL_ttf -DDATADIR="\"${DATADIR}/\"" \
-o osgg main.cpp text.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/osgg ${PREFIX}/bin/
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/*.txt ${WRKSRC}/Bandal.ttf \
${WRKSRC}/icon.png ${DATADIR}
${MKDIR} ${DATADIR}/levels
${INSTALL_DATA} ${WRKSRC}/levels/* ${DATADIR}/levels
.include <bsd.port.mk>