aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/qemu-user-static/Makefile
blob: b097eb8c3934b7eafa6e7b33f83b0f5f4c338fcb (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
# Created by: nox@FreeBSD.org
# $FreeBSD$

MAINTAINER= nox@FreeBSD.org
COMMENT=    QEMU CPU Emulator development version - static bsd-user targets
PKGNAMESUFFIX=  -user-static

QEMU_USER_STATIC=   yes
PKGMESSAGE= /dev/null
DESCR=      ${.CURDIR}/pkg-descr
OPTIONS_SLAVE=  STATIC_LINK BSD_USER X86_TARGETS
OPTIONS_EXCLUDE=SAMBA X11 GTK2 OPENGL GNUTLS SASL JPEG PNG CURL \
        CDROM_DMA PCAP USBREDIR GNS3 DOCS
MASTERDIR=  ${.CURDIR}/../qemu-devel

post-install:
    @${RM} -r ${STAGEDIR}${PREFIX}/bin/qemu-ga
    @${RM} -r ${STAGEDIR}${PREFIX}/bin/qemu-img
    @${RM} -r ${STAGEDIR}${PREFIX}/bin/qemu-io
    @${RM} -r ${STAGEDIR}${PREFIX}/bin/qemu-nbd
    @${RM} -r ${STAGEDIR}${PREFIX}/etc
    @${RM} -r ${STAGEDIR}${PREFIX}/man
    @${RM} -r ${STAGEDIR}${DATADIR}
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/qemu-*
    @(cd ${STAGEDIR}${PREFIX}/bin && \
        for i in qemu-*; do ${MV} -i $$i $$i-static; done)

.include "${MASTERDIR}/Makefile"