Fixup fromcvs/togit conversion
[pkgsrcv2.git] / emulators / wine-devel / Makefile
1 # $NetBSD: Makefile,v 1.40 2013/06/03 10:04:55 wiz Exp $
2
3 DISTNAME=       wine-1.3.26
4 PKGREVISION=    15
5 CATEGORIES=     emulators
6 MASTER_SITES=   http://ibiblio.org/pub/linux/system/emulators/wine/ \
7                 ${MASTER_SITE_SOURCEFORGE:=wine/}
8 EXTRACT_SUFX=   .tar.bz2
9
10 MAINTAINER=     adam@NetBSD.org
11 HOMEPAGE=       http://www.winehq.com/
12 COMMENT=        Free implementation of Windows on Unix
13 LICENSE=        gnu-lgpl-v2.1
14
15 BUILD_DEPENDS+= fontforge-[0-9]*:../../fonts/fontforge
16
17 ONLY_FOR_PLATFORM+=     *-*-i386
18 #ONLY_FOR_PLATFORM+=    *-*-x86_64
19
20 USE_LANGUAGES=          c
21 USE_LIBTOOL=            yes
22 USE_NCURSES=            yes
23 USE_TOOLS+=             bison flex gmake mktemp
24 FLEX_REQD=              2.5.33
25 GNU_CONFIGURE=          yes
26 UNLIMIT_RESOURCES=      datasize
27
28 REPLACE_PERL+=          tools/winemaker tools/winedump/function_grep.pl
29
30 # The Wine configure script has problems locating the libraries in the
31 # buildlink directory, so prepend all of the LDFLAGS necessary to link
32 # against the libraries.
33 #
34 CONFIGURE_ENV+=         X_LIBS=${LDFLAGS:M*:Q}
35 CONFIGURE_ENV+=         CFLAGS=${CFLAGS:M*:Q}\ -DDEVOSSAUDIO="\"${DEVOSSAUDIO}\""
36 CONFIGURE_ENV+=         LDD=${LDD:Q}
37 LIBS+=                  ${LDFLAGS}
38
39 # If we're doing a 32-bit build, make sure that the appropriate multilib
40 # options are passed through as these values are used with winegcc
41 # (which wrapper doesn't handle).
42 .include "../../mk/bsd.prefs.mk"
43 .if !empty(MACHINE_ARCH:Mi386)
44 CONFIGURE_ENV+=         ac_cv_prog_CC=${CC:Q}\ -m32
45 CONFIGURE_ENV+=         ac_cv_prog_CXX=${CXX:Q}\ -m32
46 CONFIGURE_ENV+=         ac_cv_prog_AS=${AS:Q}\ --32
47 CONFIGURE_ENV+=         ac_cv_prog_LD=${LD:Q}\ -m\ elf_i386
48 .endif
49 # Needs GCC >= 4.4
50 #.if !empty(MACHINE_ARCH:Mx86_64)
51 #CONFIGURE_ARGS+=       --disable-win16
52 #CONFIGURE_ARGS+=       --enable-win64
53 #.endif
54
55 .include "options.mk"
56
57 post-install:
58 .for tool in fnt2bdf
59         ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/tools/${tool} \
60                 ${DESTDIR}${PREFIX}/bin
61 .endfor
62
63 .include "../../devel/ncurses/buildlink3.mk"
64 .include "../../graphics/lcms/buildlink3.mk"
65 .include "../../graphics/png/buildlink3.mk"
66 .include "../../graphics/tiff/buildlink3.mk"
67 .include "../../security/gnutls/buildlink3.mk"
68 .include "../../textproc/libxslt/buildlink3.mk"
69 .include "../../textproc/libxml2/buildlink3.mk"
70 .include "../../mk/giflib.buildlink3.mk"
71 .include "../../mk/jpeg.buildlink3.mk"
72 .include "../../mk/oss.buildlink3.mk"
73 .include "../../mk/pthread.buildlink3.mk"
74 .include "../../sysutils/desktop-file-utils/desktopdb.mk"
75 .include "../../mk/bsd.pkg.mk"