Hello,

I would like someone to review my port, it is my first one.

This is a port of the game bastet which is also called "bastard tetris" because this is a tetris game with an algorithm ta always give you the worst piece it can.

The base of the port has been done by Jeremie Courreges-Anglas who sent me his work. I updated it to get the port to compile successfully.

I am using a commit of github because the latest release on github doesn't compile so I need to take the latest commit archive. Is it possible to write something cleaner than setting the DISTFILES with the commit name ?

It compiles ONLY with clang, for unknown reason.

I used portcheck -N and I fixed the complaints.

-- Makefile so opening the .tar.gz isn't needed --
COMMENT =       bastard tetris
DISTNAME =      bastet-0.43.1
CATEGORIES =    games

HOMEPAGE =      http://fph.altervista.org/prog/bastet.html

# GPLv3
PERMIT_PACKAGE_CDROM =  Yes

WANTLIB =       boost_program_options-mt c curses m

GH_ACCOUNT =    fph
GH_PROJECT =    bastet
GH_COMMIT =     5037e410fde6fafe8e6bc4cf17a12ad98e01c17e
DISTFILES =     5037e410fde6fafe8e6bc4cf17a12ad98e01c17e.tar.gz

MODULES =       lang/clang
MODCLANG_ARCHS = *
MODCLANG_LANGS = c++
LIB_DEPENDS =   devel/boost

MAKE_FLAGS =    CPPFLAGS="-I\"${PREFIX}\"/include \
                    -DLOCALSTATEDIR=\"${LOCALSTATEDIR}\"" \
                LDFLAGS="-L\"${PREFIX}\"/lib -lcurses -lboost_program_options"

NO_TEST =       Yes

do-configure:
        ${SUBST_CMD} ${WRKSRC}/Config.cpp

do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/bastet ${PREFIX}/bin/
        ${INSTALL_MAN} ${WRKSRC}/bastet.6 ${PREFIX}/man/man6
        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/bastet/
        cd ${WRKSRC}; ${INSTALL_DATA} AUTHORS LICENSE NEWS README \
            ${PREFIX}/share/doc/bastet
        ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/bastet/
        ${INSTALL_DATA} /dev/null \
            ${PREFIX}/share/examples/bastet/bastet.scores2

.include <bsd.port.mk>

Attachment: bastet.tar.gz
Description: GNU Zip compressed data

Reply via email to