Changeset View
Changeset View
Standalone View
Standalone View
head/emulators/qemu-sbruno/Makefile
Show First 20 Lines • Show All 231 Lines • ▼ Show 20 Lines | |||||
.if ${ARCH} == "powerpc64" | .if ${ARCH} == "powerpc64" | ||||
MAKE_ARGS+= ARCH=ppc64 | MAKE_ARGS+= ARCH=ppc64 | ||||
.endif | .endif | ||||
.if ${ARCH} == "sparc64" | .if ${ARCH} == "sparc64" | ||||
CONFIGURE_ARGS+= --sparc_cpu=v9 | CONFIGURE_ARGS+= --sparc_cpu=v9 | ||||
.endif | .endif | ||||
.if ${OSVERSION} < 900033 | |||||
BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils | |||||
CONFIGURE_ENV+= LD=${LOCALBASE}/bin/ld | |||||
CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin | |||||
MAKE_ENV+= COMPILER_PATH=${LOCALBASE}/bin | |||||
.endif | |||||
CONFIGURE_ARGS+= --python=${PYTHON_CMD} | CONFIGURE_ARGS+= --python=${PYTHON_CMD} | ||||
# -lprocstat actually only _needs_ -lelf after r249666 or r250870 (MFC) | # -lprocstat actually only _needs_ -lelf after r249666 or r250870 (MFC) | ||||
# but it shouldn't matter much | # but it shouldn't matter much | ||||
post-patch: | post-patch: | ||||
@${MV} ${WRKDIR}/dtc ${WRKSRC} | @${MV} ${WRKDIR}/dtc ${WRKSRC} | ||||
.if ${OSVERSION} < 900000 | |||||
@${REINPLACE_CMD} -e '/LIBS/s|-lprocstat||' ${WRKSRC}/configure | |||||
.else | |||||
@${REINPLACE_CMD} -e '/LIBS/s|-lprocstat|-lprocstat -lelf|' \ | @${REINPLACE_CMD} -e '/LIBS/s|-lprocstat|-lprocstat -lelf|' \ | ||||
${WRKSRC}/configure | ${WRKSRC}/configure | ||||
.endif | |||||
@${REINPLACE_CMD} -e '/libs_qga=/s|glib_libs|glib_libs -lintl|' ${WRKSRC}/configure | @${REINPLACE_CMD} -e '/libs_qga=/s|glib_libs|glib_libs -lintl|' ${WRKSRC}/configure | ||||
#.if ${PORT_OPTIONS:MPCAP} | #.if ${PORT_OPTIONS:MPCAP} | ||||
# @cd ${WRKSRC} && ${PATCH} --quiet < ${FILESDIR}/pcap-patch | # @cd ${WRKSRC} && ${PATCH} --quiet < ${FILESDIR}/pcap-patch | ||||
#.endif | #.endif | ||||
.if empty(PORT_OPTIONS:MCDROM_DMA) | .if empty(PORT_OPTIONS:MCDROM_DMA) | ||||
@cd ${WRKSRC} && ${PATCH} --quiet < ${FILESDIR}/cdrom-dma-patch | @cd ${WRKSRC} && ${PATCH} --quiet < ${FILESDIR}/cdrom-dma-patch | ||||
.endif | .endif | ||||
@${REINPLACE_CMD} -E \ | @${REINPLACE_CMD} -E \ | ||||
Show All 32 Lines |