1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/textproc/scim/Makefile
Tijl Coosemans 6e0d02ef3d - Fix linker problem by removing libtool dependency. The combination of
USE_AUTOTOOLS, USE_GCC and C++ is broken because /usr/local/bin/libtool
  has hardcoded the linker it was built with.  So on FreeBSD 10 it tries
  to link gcc compiled C++ code with clang which does not work.
- Remove USE_GCC and fix build with clang with two new patches. [1]
- Fix build with libc++ by removing -lstdc++ from linker flags.  The
  compiler automatically adds the right runtime library.
- Add LICENSE.
- Convert gnomehack to pathfix.
- Remove references to PTHREAD_LIBS and PTHREAD_CFLAGS.
- Support staging.
- Remove an old patch that's no longer needed.

PR:		ports/164618 [1]
Submitted by:	Paul Ambrose <ambrosehua@gmail.com> [1]
Approved by:	maintainer timeout (2 weeks)
2013-10-22 12:10:35 +00:00

32 lines
706 B
Makefile

# Created by: Jie Gao <gaoj@cpsc.ucalgary.ca>
# $FreeBSD$
PORTNAME= scim
PORTVERSION= 1.4.9
PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= SF
MAINTAINER= lx@FreeBSD.org
COMMENT= Smart Common Input Method platform
LICENSE= LGPL21
USE_GNOME= gnomehier gtk20 intlhack
USE_XORG= x11 xpm
USE_LDCONFIG= yes
USES= gettext gmake iconv pathfix pkgconfig
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include -D__STDC_ISO_10646__
LDFLAGS+= -L${LOCALBASE}/lib -lintl ${ICONV_LIB}
post-patch:
@${REINPLACE_CMD} 's/-lstdc++//' \
${WRKSRC}/extras/gtk2_immodule/Makefile.in \
${WRKSRC}/extras/setup/Makefile.in \
${WRKSRC}/src/Makefile.in \
${WRKSRC}/tests/Makefile.in
.include <bsd.port.mk>