View | Details | Raw Unified | Return to bug 167049
Collapse All | Expand All

(-)./Makefile (-2 / +5 lines)
Lines 55-63 Link Here
55
.include <bsd.port.options.mk>
55
.include <bsd.port.options.mk>
56
56
57
.if defined(WITH_GDB_LINK)
57
.if defined(WITH_GDB_LINK)
58
PLIST_SUB+=	GDB_LINK=true
58
PLIST_SUB+=	GDB_LINK=""
59
.else
59
.else
60
PLIST_SUB+=	GDB_LINK=false
60
PLIST_SUB+=	GDB_LINK="@comment "
61
.endif
61
.endif
62
62
63
.if defined(WITH_PYTHON)
63
.if defined(WITH_PYTHON)
Lines 101-106 Link Here
101
	${INSTALL_PROGRAM} ${WRKSRC}/gdb/gdb ${PREFIX}/bin/gdb${VER}
101
	${INSTALL_PROGRAM} ${WRKSRC}/gdb/gdb ${PREFIX}/bin/gdb${VER}
102
	${LN} ${PREFIX}/bin/gdb${VER} ${PREFIX}/bin/gdbtui${VER}
102
	${LN} ${PREFIX}/bin/gdb${VER} ${PREFIX}/bin/gdbtui${VER}
103
	${INSTALL_MAN} ${WRKSRC}/gdb/gdb.1 ${MAN1PREFIX}/man/man1/gdb${VER}.1
103
	${INSTALL_MAN} ${WRKSRC}/gdb/gdb.1 ${MAN1PREFIX}/man/man1/gdb${VER}.1
104
.if defined(WITH_GDB_LINK)
105
	${LN} -sf gdb${VER} ${PREFIX}/bin/gdb
106
.endif
104
.if defined(WITH_PYTHON)
107
.if defined(WITH_PYTHON)
105
	(cd ${WRKSRC}/gdb; ${GMAKE} install-python )
108
	(cd ${WRKSRC}/gdb; ${GMAKE} install-python )
106
	(cd ${WRKSRC}/gdb/data-directory; ${GMAKE} install-python )
109
	(cd ${WRKSRC}/gdb/data-directory; ${GMAKE} install-python )
(-)./pkg-plist (-2 / +1 lines)
Lines 1-3 Link Here
1
%%GDB_LINK%%bin/gdb
1
bin/gdb%%VER%%
2
bin/gdb%%VER%%
2
bin/gdbtui%%VER%%
3
bin/gdbtui%%VER%%
3
%%PYTHON%%share/gdb%%VER%%/python/gdb/__init__.py
4
%%PYTHON%%share/gdb%%VER%%/python/gdb/__init__.py
Lines 11-15 Link Here
11
%%PYTHON%%@dirrm share/gdb%%VER%%/python/gdb
12
%%PYTHON%%@dirrm share/gdb%%VER%%/python/gdb
12
%%PYTHON%%@dirrm share/gdb%%VER%%/python
13
%%PYTHON%%@dirrm share/gdb%%VER%%/python
13
%%PYTHON%%@dirrm share/gdb%%VER%%
14
%%PYTHON%%@dirrm share/gdb%%VER%%
14
@exec if $( %%GDB_LINK%% ) ; then ln -fs %%PREFIX%%/bin/gdb%%VER%% %%PREFIX%%/bin/gdb; fi
15
@unexec if $( %%GDB_LINK%% ) ; then rm -f %%PREFIX%%/bin/gdb; fi

Return to bug 167049