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


                                                                      


                                                   
 
                         
                                           
      
# Makefile for defining variables used by other Doom related ports.

DMPKGNAMEPREFIX?=	doom-
DMDIR?=		${LOCALBASE}/share/doom

.if defined(PKGNAMEPREFIX) && ${PKGNAMEPREFIX} == ${DMPKGNAMEPREFIX} && defined(OPTIONSMKINCLUDED)
.  error include before <bsd.port.options.mk> if using DMPKGNAMEPREFIX
.endif

MAKE_ENV+=	DMDIR="${DMDIR}"
PLIST_SUB+=	DMDIR="${DMDIR:S/${LOCALBASE}\///}"
SUB_LIST+=	DMDIR="${DMDIR}"

.if ${PORTNAME} != "data"
RUN_DEPENDS+=	doom-data>0:games/doom-data
.endif