View | Details | Raw Unified | Return to bug 252746
Collapse All | Expand All

(-)Makefile (-7 / +10 lines)
Lines 15-20 Link Here
15
MAINTAINER=	scf@FreeBSD.org
15
MAINTAINER=	scf@FreeBSD.org
16
COMMENT=	Neverwinter Nights Data Files
16
COMMENT=	Neverwinter Nights Data Files
17
17
18
LICENSE=	Proprietary
19
20
ONLY_FOR_ARCHS=	amd64 i386
21
ONLY_FOR_ARCHS_REASON=	Binary Distribution on x86 only
22
18
# Setup port based upon whether this is the Diamond edition or straight NWN.
23
# Setup port based upon whether this is the Diamond edition or straight NWN.
19
.if defined(CDROM_MOUNT) && exists(${CDROM_MOUNT}/KingmakerSetup.exe)
24
.if defined(CDROM_MOUNT) && exists(${CDROM_MOUNT}/KingmakerSetup.exe)
20
NWNVER=		1.61
25
NWNVER=		1.61
Lines 21-27 Link Here
21
NWNREV=		0
26
NWNREV=		0
22
NWN_DIAMOND=	yes
27
NWN_DIAMOND=	yes
23
28
24
EXTRACT_DEPENDS+=	7z:archivers/p7zip
29
USES=		7z:p7zip zip
25
30
26
PLIST_SUB+=	DIAMOND="" ORIGINAL="@comment "
31
PLIST_SUB+=	DIAMOND="" ORIGINAL="@comment "
27
.else
32
.else
Lines 36-51 Link Here
36
WRKSRC=		${WRKDIR}/nwn
41
WRKSRC=		${WRKDIR}/nwn
37
RESTRICTED=	Distribution not allowed
42
RESTRICTED=	Distribution not allowed
38
43
39
ONLY_FOR_ARCHS=	i386 amd64
40
ONLY_FOR_ARCHS_REASON=	Binary Distribution on x86 only
41
42
do-install:
44
do-install:
43
	${MKDIR} ${STAGEDIR}${DATADIR}
45
	${MKDIR} ${STAGEDIR}${DATADIR}
44
.if defined(NWN_DIAMOND)
46
.if defined(NWN_DIAMOND)
45
	7z e -y -x'r!*.dll' -x'r!*.exe' -o${WRKSRC}/Kingmaker\
47
	${LOCALBASE}/bin/${P7ZIP_CMD} e -y -x'r!*.dll' -x'r!*.exe'\
46
		${CDROM_MOUNT}/KingmakerSetup.exe
48
		-o${WRKSRC}/Kingmaker ${CDROM_MOUNT}/KingmakerSetup.exe
47
.for zipfile in Data_Shared.zip Data_linux.zip data/XP1.zip data/XP2.zip
49
.for zipfile in Data_Shared.zip Data_linux.zip data/XP1.zip data/XP2.zip
48
	(cd ${STAGEDIR}${DATADIR} && ${UNZIP_CMD} -o ${CDROM_MOUNT}/${zipfile})
50
	(cd ${STAGEDIR}${DATADIR} && ${UNZIP_NATIVE_CMD}\
51
		-o ${CDROM_MOUNT}/${zipfile})
49
.endfor
52
.endfor
50
.else
53
.else
51
	(cd ${WRKSRC} && ${FIND} . -print | \
54
	(cd ${WRKSRC} && ${FIND} . -print | \

Return to bug 252746