aboutsummaryrefslogblamecommitdiff
path: root/games/quake3-data/Makefile.include
blob: d60f46aa925db162dbae2c42c3db2471880342a0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                                          
                                                                           
 
                               
                                         
 
                                                                                                  
                                                                              

      
                                
                                                  
                                
 
                       
                                                          
      
# Makefile for defining variables used by other Quake3 related ports.  See
# `games/quake2-data/Makefile.include' for extensive description and usage.

Q3PKGNAMEPREFIX?=	quake3-
Q3DIR?=		${LOCALBASE}/share/quake3

.if defined(PKGNAMEPREFIX) && ${PKGNAMEPREFIX} == ${Q3PKGNAMEPREFIX} && defined(OPTIONSMKINCLUDED)
IGNORE=	is using Q3PKGNAMEPREFIX, but <bsd.port.options.mk> included too early
.endif

MAKE_ENV+=	Q3DIR="${Q3DIR}"
PLIST_SUB+=	Q3DIR="${Q3DIR:S|${LOCALBASE}/||}"
SUB_LIST+=	Q3DIR="${Q3DIR}"

.if ${PORTNAME} != data
RUN_DEPENDS+=	${Q3DIR}/baseq3/pak1.pk3:games/quake3-data
.endif