aboutsummaryrefslogtreecommitdiffstats
path: root/games/meqcc/Makefile
blob: 07fcc479638713017d332bbba89a481668d1184d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$

PORTNAME=   meqcc
PORTVERSION=    1.4
CATEGORIES= games devel
MASTER_SITES=   ftp://ftp.clan-rum.org/quake/qutils/ \
        http://freebsd.nsu.ru/distfiles/
DISTNAME=   ${PORTNAME}${PORTVERSION:S/.//g}src

MAINTAINER= danfe@FreeBSD.org
COMMENT=    MrElusive's QuakeC compiler with precompiler support

LICENSE=    GPLv2

USES=       dos2unix zip
MAKEFILE=   linux.mak
NO_WRKSUBDIR=   yes

PLIST_FILES=    bin/meqcc
PORTDOCS=   *

OPTIONS_DEFINE= DOCS

.include <bsd.port.options.mk>

post-patch:
    @${REINPLACE_CMD} -e 's/<io\.h>/<unistd.h>/ ; /<conio\.h>/d' \
        ${WRKSRC}/l_log.c
    @${REINPLACE_CMD} -e 's/unsigned long t/time_t t/' \
        ${WRKSRC}/l_precomp.c

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/qcc ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/[^gr]*.txt ${STAGEDIR}${DOCSDIR}

.include "${.CURDIR}/../quake-source/Makefile.include"
.include <bsd.port.mk>