mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
9250d94365
It brings bison as a build dependency in case it is set the following way: USES= bison or USES= bison:build it brings bison as a run dependency in case it is set the following way: USES= bison:run it brings bison both as a run and build dependency in case it the set the following way: USES= bison:both While here trim some headers Convert some USE_GNOME= gnomehack to USES= pathfix
53 lines
1.5 KiB
Makefile
53 lines
1.5 KiB
Makefile
# Created by: Leland Wang <llwang@infor.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= noegnud
|
|
PORTVERSION= 0.8.3
|
|
PORTREVISION= 10
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://www.darkarts.co.za/projects/noegnud/downloads/${PORTVERSION}/:noegnud \
|
|
SF/nethack/nethack/3.4.2:nethack
|
|
PKGNAMESUFFIX= -littlehack
|
|
DISTFILES= ${DISTNAME}_linux_src-minimal${EXTRACT_SUFX}:noegnud \
|
|
nethack-342.tgz:nethack
|
|
EXTRACT_ONLY= ${DISTNAME}_linux_src-minimal${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= llwang@infor.org
|
|
COMMENT= The noeGNUd UI for the LittleHack variation of Nethack
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/${NOEGNUDVERSION}/data/gui:${PORTSDIR}/games/noegnud-data
|
|
|
|
NOEGNUDVERSION= ${PORTNAME}-0.8.0
|
|
USES= bison
|
|
USE_GL= yes
|
|
WANT_SDL= yes
|
|
USE_SDL= sdl image mixer
|
|
USE_BZIP2= yes
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/variants
|
|
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
ALL_TARGET= lh001
|
|
INSTALL_TARGET= install_lh001
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
pre-everything::
|
|
.if ${HAVE_SDL}
|
|
@${ECHO_MSG} "This port depends on SDL with OpenGL support."
|
|
@${ECHO_MSG} "If your SDL does not support OpenGL, hit ^C now and reinstall SDL"
|
|
@${ECHO_MSG} "with OpenGL support turned on."
|
|
.endif
|
|
|
|
post-extract:
|
|
@${CP} ${DISTDIR}/nethack-342.tgz ${WRKSRC}/tarballs
|
|
(cd ${WRKSRC} && ${MAKE} littlehack-0.0.1)
|
|
|
|
post-patch:
|
|
(cd ${WRKSRC} && ${MAKE} ${NOEGNUDVERSION}-littlehack-0.0.1)
|
|
@(${PATCH} ${PATCH_ARGS} < ${FILESDIR}/noegnud-littlehack.patch)
|
|
|
|
do-configure:
|
|
(cd ${WRKSRC} && ${MAKE} ${NOEGNUDVERSION}-littlehack-0.0.1/Makefile)
|
|
|
|
.include <bsd.port.post.mk>
|